Subversion Repositories basico

Rev

Rev 385 | Rev 388 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 385 Rev 386
Line 80... Line 80...
80
        self.set_wmclass (APP['name'], APP['name'])
80
        self.set_wmclass (APP['name'], APP['name'])
81
        self.set_role(APP['name'])
81
        self.set_role(APP['name'])
82
        self.set_default_size(1024, 728)
82
        self.set_default_size(1024, 728)
83
        self.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
83
        self.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
84
84
85
        self.log.debug(self.get_name())
-
 
86
        #FIX: hack to avoid white background in widgets within a notebook tab
85
        #FIX: hack to avoid white background in widgets within a notebook tab
87
        #FIXME: it should be managed by settings
86
        #FIXME: it should be managed by settings
88
        screen = Gdk.Screen.get_default()
-
 
89
        css_provider = Gtk.CssProvider()
-
 
90
        css_provider.load_from_path(FILE['CSS'])
-
 
91
        context = Gtk.StyleContext()
-
 
92
        context.add_provider_for_screen(screen, css_provider, Gtk.STYLE_PROVIDER_PRIORITY_USER)
-
 
-
 
87
        # ~ screen = Gdk.Screen.get_default()
-
 
88
        # ~ css_provider = Gtk.CssProvider()
-
 
89
        # ~ css_provider.load_from_path(FILE['CSS'])
-
 
90
        # ~ context = Gtk.StyleContext()
-
 
91
        # ~ context.add_provider_for_screen(screen, css_provider, Gtk.STYLE_PROVIDER_PRIORITY_USER)
93
92
94
        self.maximize ()
-
 
-
 
93
        # ~ self.maximize ()
95
        self.setup_headerbar()
94
        self.setup_headerbar()
96
        self.show_all()
95
        self.show_all()
97
96
98
97
99
    def setup_headerbar(self):
98
    def setup_headerbar(self):