diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-07-01 18:02:57 -0700 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-01 18:04:56 -0700 |
commit | 1be338fd444f0cdea8dad030f0fb52b346054fcd (patch) | |
tree | 6245eef40c4f418f347216a01908bd3614c9c85e /gtk/gtkswitch.c | |
parent | 862e0dab03e12c2fb1f6d99dd85c588dccc15dbc (diff) | |
download | gtk+-1be338fd444f0cdea8dad030f0fb52b346054fcd.tar.gz |
GtkSwitch: fix a reentry issue
The introduction of state broke some users which relied on
being able to set active in a notify::active handler.
https://bugzilla.gnome.org/show_bug.cgi?id=751754
Diffstat (limited to 'gtk/gtkswitch.c')
-rw-r--r-- | gtk/gtkswitch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c index a2b10e16fb..3a2f8e9b9b 100644 --- a/gtk/gtkswitch.c +++ b/gtk/gtkswitch.c @@ -1092,10 +1092,10 @@ gtk_switch_set_active (GtkSwitch *sw, else priv->handle_pos = 0.0; - g_object_notify_by_pspec (G_OBJECT (sw), switch_props[PROP_ACTIVE]); - g_signal_emit (sw, signals[STATE_SET], 0, is_active, &handled); + g_object_notify_by_pspec (G_OBJECT (sw), switch_props[PROP_ACTIVE]); + accessible = gtk_widget_get_accessible (GTK_WIDGET (sw)); atk_object_notify_state_change (accessible, ATK_STATE_CHECKED, priv->is_active); |