summaryrefslogtreecommitdiff
path: root/applets/wncklet
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2012-11-12 08:54:33 -0600
committerScott Balneaves <[email protected]>2012-11-12 08:54:33 -0600
commitb94aaf81d04f87cfcfde76b68876fbc0d27a8deb (patch)
treea508028c3e29b1fd74d50fb7226625a128cb7500 /applets/wncklet
parentcc9615065c128be5924a12df50abfda0c6b74a3a (diff)
downloadmate-panel-b94aaf81d04f87cfcfde76b68876fbc0d27a8deb.tar.bz2
mate-panel-b94aaf81d04f87cfcfde76b68876fbc0d27a8deb.tar.xz
Code audit: fix compile warnings, uninitialized pointer problems
Diffstat (limited to 'applets/wncklet')
-rw-r--r--applets/wncklet/window-list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c
index bd4355a3..490b56e5 100644
--- a/applets/wncklet/window-list.c
+++ b/applets/wncklet/window-list.c
@@ -549,7 +549,8 @@ static void group_windows_toggled(GtkToggleButton* button, TasklistData* tasklis
{
if (gtk_toggle_button_get_active(button))
{
- gint value = g_object_get_data(G_OBJECT(button), "group_value");
+ gint value;
+ g_object_get (G_OBJECT(button), "group_value", &value);
g_settings_set_enum (tasklist->settings, "group-windows", value);
}
}