diff options
author | Stefano Karapetsas <[email protected]> | 2013-01-19 19:35:52 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-01-19 19:35:52 +0100 |
commit | a650d5e14b2311bfb813ea34a793bc0eddd73ab4 (patch) | |
tree | d1212e51fc6762ce7f6e98e47e293fbf020af965 | |
parent | 46a1fac8c934688032024188b0d58ace98668361 (diff) | |
download | mate-panel-a650d5e14b2311bfb813ea34a793bc0eddd73ab4.tar.bz2 mate-panel-a650d5e14b2311bfb813ea34a793bc0eddd73ab4.tar.xz |
wncklet: Fix window-list grouping preference
See https://github.com/mate-desktop/mate-panel/issues/70
-rw-r--r-- | applets/wncklet/window-list.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c index cdcb1d7a..d38c7c3d 100644 --- a/applets/wncklet/window-list.c +++ b/applets/wncklet/window-list.c @@ -549,9 +549,9 @@ static void group_windows_toggled(GtkToggleButton* button, TasklistData* tasklis { if (gtk_toggle_button_get_active(button)) { - gint value; - g_object_get (G_OBJECT(button), "group_value", &value, NULL); - g_settings_set_enum (tasklist->settings, "group-windows", value); + gchar *value; + value = g_object_get_data (G_OBJECT (button), "group_value"); + g_settings_set_string (tasklist->settings, "group-windows", value); } } @@ -636,9 +636,9 @@ static void setup_dialog(GtkBuilder* builder, TasklistData* tasklist) /* Window grouping: */ button = get_grouping_button(tasklist, tasklist->grouping); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE); - g_object_set_data(G_OBJECT(tasklist->never_group_radio), "group_value", GINT_TO_POINTER(MATEWNCK_TASKLIST_NEVER_GROUP)); - g_object_set_data(G_OBJECT(tasklist->auto_group_radio), "group_value", GINT_TO_POINTER(MATEWNCK_TASKLIST_AUTO_GROUP)); - g_object_set_data(G_OBJECT(tasklist->always_group_radio), "group_value", GINT_TO_POINTER(MATEWNCK_TASKLIST_ALWAYS_GROUP)); + g_object_set_data(G_OBJECT(tasklist->never_group_radio), "group_value", "never"); + g_object_set_data(G_OBJECT(tasklist->auto_group_radio), "group_value", "auto"); + g_object_set_data(G_OBJECT(tasklist->always_group_radio), "group_value", "always"); g_signal_connect(G_OBJECT(tasklist->never_group_radio), "toggled", (GCallback) group_windows_toggled, tasklist); g_signal_connect(G_OBJECT(tasklist->auto_group_radio), "toggled", (GCallback) group_windows_toggled, tasklist); |