GNOME Bugzilla – Bug 697495
window-list: Fix preferences radio buttons not reflecting the setting
Last modified: 2013-04-07 19:03:03 UTC
The preferences radio buttons always come up with the first one active regardless of the setting value.
Created attachment 240890 [details] [review] window-list: Fix preferences radio buttons not reflecting the setting When setting GtkRadioButton's group property, its active property is also set as a by-product. This means that setting these properties isn't commutative which arguably is a bug in gtk+ but one that we can easily work around by just switching the order here.
Review of attachment 240890 [details] [review]: Ugh. This GTK+ behavior looks like very black magic to me indeed ... still, the fix is good, so please push!
(In reply to comment #2) > Ugh. This GTK+ behavior looks like very black magic to me indeed ... still, the > fix is good, so please push! Yes, for the record, here's where the "magic" happens: https://git.gnome.org/browse/gtk+/tree/gtk/gtkradiobutton.c#n345 Attachment 240890 [details] pushed as 6adeed4 - window-list: Fix preferences radio buttons not reflecting the setting