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.

https://bugzilla.gnome.org/show_bug.cgi?id=697495
This commit is contained in:
Rui Matos
2013-04-07 00:37:10 +02:00
parent a97d08a2d2
commit 6adeed4e60

View File

@@ -59,9 +59,9 @@ const WindowListPrefsWidget = new GObject.Class({
continue;
}
radio = new Gtk.RadioButton({ group: radio,
radio = new Gtk.RadioButton({ active: currentMode == mode,
label: label,
active: currentMode == mode });
group: radio });
grid.add(radio);
radio.connect('toggled', Lang.bind(this, function(button) {