From dd397167906b5c36dc3e631ccb85c83f8802afee Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 18 Mar 2011 10:42:24 -0400 Subject: [PATCH] property-editor: use the right signalture for the notify::active callback https://bugzilla.gnome.org/show_bug.cgi?id=645143 --- libgnome-control-center/gconf-property-editor.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libgnome-control-center/gconf-property-editor.c b/libgnome-control-center/gconf-property-editor.c index e0d69074c..7dc5ba1fb 100644 --- a/libgnome-control-center/gconf-property-editor.c +++ b/libgnome-control-center/gconf-property-editor.c @@ -447,8 +447,9 @@ peditor_boolean_widget_changed (GConfPropertyEditor *peditor, } static void -peditor_switch_widget_changed (GConfPropertyEditor *peditor, - GtkSwitch *sw) +peditor_switch_widget_changed (GtkSwitch *sw, + GParamSpec *pspec, + GConfPropertyEditor *peditor) { GConfValue *value, *value_wid; @@ -522,8 +523,8 @@ gconf_peditor_new_switch (GConfChangeSet *changeset, va_end (var_args); - g_signal_connect_swapped (sw, "notify::active", - (GCallback) peditor_switch_widget_changed, peditor); + g_signal_connect (sw, "notify::active", + (GCallback) peditor_switch_widget_changed, peditor); return peditor; }