After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 97882 - header pane's colors don't update when gtk theme changes
header pane's colors don't update when gtk theme changes
Status: RESOLVED FIXED
Product: Pan
Classification: Other
Component: general
0.13.2
Other Linux
: Normal normal
: 0.13.3
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2002-11-06 22:51 UTC by Martin Tomasek
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Martin Tomasek 2002-11-06 22:51:50 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.
Comment 1 Charles Kerr 2002-11-06 23:07:26 UTC
Which version of Pan are you using?
Comment 2 Martin Tomasek 2002-11-06 23:37:04 UTC
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.
Comment 3 Charles Kerr 2002-12-04 02:36:05 UTC
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.