(self)
Class initialiser
Class initialiser
Class initialiser
def __init__(self):
        """Class initialiser"""
        self.terminator = Terminator()
        self.terminator.register_window(self)

        Container.__init__(self)
        GObject.GObject.__init__(self)
        GObject.type_register(Window)
        self.register_signals(Window)

        self.get_style_context().add_class("terminator-terminal-window")

#        self.set_property('allow-shrink', True)  # FIXME FOR GTK3, or do we need this actually?
        icon_to_apply=''

        self.register_callbacks()
        self.apply_config()

        self.title = WindowTitle(self)
        self.title.update()
        
        self.preventHide = False

        options = self.config.options_get()
        if options:
            if options.forcedtitle:
                self.title.force_title(options.forcedtitle)

            if options.role:
                self.set_role(options.role)
            
            if options.forcedicon is not None:
                icon_to_apply = options.forcedicon

            if options.geometry:
                if not self.parse_geometry(options.geometry):
                    err('Window::__init__: Unable to parse geometry: %s' % 
                            options.geometry)

        self.apply_icon(icon_to_apply)
        self.pending_set_rough_geometry_hint = False
def __init__ ( self ) : self . terminator = Terminator ( ) self . terminator . register_window ( self ) Container . __init__ ( self ) GObject . GObject . __init__ ( self ) GObject . type_register ( Window ) self . register_signals ( Window ) self . get_style_context ( ) . add_class ( "terminator-terminal-window" ) #        self.set_property('allow-shrink', True)  # FIXME FOR GTK3, or do we need this actually? icon_to_apply = '' self . register_callbacks ( ) self . apply_config ( ) self . title = WindowTitle ( self ) self . title . update ( ) self . preventHide = False options = self . config . options_get ( ) if options : if options . forcedtitle : self . title . force_title ( options . forcedtitle ) if options . role : self . set_role ( options . role ) if options . forcedicon is not None : icon_to_apply = options . forcedicon if options . geometry : if not self . parse_geometry ( options . geometry ) : err ( 'Window::__init__: Unable to parse geometry: %s' % options . geometry ) self . apply_icon ( icon_to_apply ) self . pending_set_rough_geometry_hint = False