property-editor: use the right signalture for the notify::active callback

https://bugzilla.gnome.org/show_bug.cgi?id=645143
This commit is contained in:
Cosimo Cecchi 2011-03-18 10:42:24 -04:00
parent e2f6f36b8e
commit dd39716790

View file

@ -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,7 +523,7 @@ gconf_peditor_new_switch (GConfChangeSet *changeset,
va_end (var_args);
g_signal_connect_swapped (sw, "notify::active",
g_signal_connect (sw, "notify::active",
(GCallback) peditor_switch_widget_changed, peditor);
return peditor;