GNOME Bugzilla – Bug 435840
GTK_WIDGET_SAVED_STATE inconsistency
Last modified: 2007-06-13 14:20:08 UTC
It seems the SAVED_STATE of a container and its children can get inconsistent in some situations. Example: GtkButton with an HBox containing an arrow and a label. When you set the button insensitive from a callback on its clicked signal the save state for the button itself will be NORMAL, but the save state for its children (HBox, and logically Arrow and Label) will be ACTIVE. This leds to theming glitches in maemo where the actual graphics used are dependent on the widgets' state. Testcase attached.
Created attachment 87528 [details] Testcase
Created attachment 87707 [details] [review] Tim's patch Discussed with Tim on jabber about this issue and he came up with this patch. It fixes the saved_state inconsistency.
Created attachment 88668 [details] Automated testcase First stab at an automated test case. It aborts with stock GTK+ and works fine with Tim's patch.
rock! thanks Xan. bratsche/tbf, can we get this into SVN?
Committed to trunk and gtk-2-10.