GNOME Bugzilla – Bug 97882
header pane's colors don't update when gtk theme changes
Last modified: 2004-12-22 21:47:04 UTC
background color isn't probably set from theme, it seem to me that it always stay white. i cannot determine, if something similar happens to foreground color too. both grouplist and article colors are set correctly.
Which version of Pan are you using?
sorry. I'm using today's CVS version. I looked in articlelist.c, this is all caused by remembering old colors over changing theme -- when I restart pan, all is ok. IMHO all, what is needed is to set rebuild_style = TRUE and redraw list of articles on theme change, but I don't know, how to check, if this change happened.
Owen talked about how to lisetn for theme changes on gtk-devel-list: http://mail.gnome.org/archives/gtk-devel-list/2002-October/msg00115.html Widgets are notified when widget->style changes with the ::style-set signal. This is the effect of a theme change that a widget almost always cares about; GTK+ internally doesn't really have an idea of a "theme"; different widgets can have different theme engines and styles. If you want to find out if the theme name setting changes, you can listen to notify::gtk-theme-name on the GtkSettings, but I don't know of any valid reason to do that. So we could up a listener in the header pane for the former.
fixed in cvs for the next release: http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan/pan&command=DIFF_FRAMESET&file=articlelist.c&rev1=1.594&rev2=1.595&root=/cvs/gnome http://cvs.gnome.org/bonsai/cvsview2.cgi?diff_mode=context&whitespace_mode=show&subdir=pan&command=DIFF_FRAMESET&file=ANNOUNCE.html&rev1=1.4&rev2=1.5&root=/cvs/gnome