OoO En cette fin de matinée radieuse du lundi 26 juin 2006, vers 11:19, Martin-Éric Racine <[EMAIL PROTECTED]> disait:
> That is a leftover from Tollef's original code in wizard.py, where the > UI colors are hard-coded, rather than inherited via the GTK theme. > I can see the lines where this is taking place, but I'm not familiar > enough with GTK coding to know how to fix it. IMO, the best way would be to remove colors. The application is still good looking without them and this work even with white on black theme. Just suppress all lines containing "color" in wizard.py. Here is a patch :
--- wizard.py~ 2006-06-26 01:17:20.000000000 +0200 +++ wizard.py 2006-12-29 19:49:20.000000000 +0100 @@ -160,10 +160,6 @@ pass class Wizard(gobject.GObject): - sidebar_color = gtk.gdk.color_parse('#cccccc') - main_color = gtk.gdk.color_parse('#ffffff') - sidebar_active_color = gtk.gdk.color_parse('#999999') - __gsignals__ = { 'finished' : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()) @@ -175,8 +171,6 @@ for widget in self.wtree.get_widget_prefix(''): setattr(self, widget.get_name(), widget) self.wtree.signal_autoconnect(self) - self.eventbox_top.modify_bg(gtk.STATE_NORMAL, self.sidebar_color) - self.eventbox_main.modify_bg(gtk.STATE_NORMAL, self.main_color) self._use_main = True self.steps = [] self.stack = Stack() @@ -399,7 +393,6 @@ else: parent = self.eventbox_sidebar - parent.modify_bg(gtk.STATE_NORMAL, self.sidebar_color) self.vbox_sidebar = gtk.VBox() self.vbox_sidebar.set_border_width(5) self.vbox_sidebar.set_size_request(200, -1) @@ -417,8 +410,6 @@ text = escape(name) button = gtk.Button('') - button.modify_bg(gtk.STATE_PRELIGHT, self.sidebar_active_color) - button.modify_bg(gtk.STATE_ACTIVE, self.sidebar_active_color) label = button.get_children()[0] label.set_padding(padding, 0) @@ -446,10 +437,10 @@ button.set_sensitive(False) if not active and not step.visited: - markup = '<span color="#7a7a7a">%s</span>' % name + markup = '%s' % name button.set_sensitive(False) else: - markup = '<span color="black">%s</span>' % (name) + markup = '%s' % (name) button.set_property('can_focus', False) label.set_markup(markup)
-- printk(KERN_WARNING "Warning: defective CD-ROM (volume sequence number). Enabling \"cruft\" mount option.\n"); 2.2.16 /usr/src/linux/fs/isofs/inode.c