[gtk+/gtk-3-16] GtkSwitch: fix a reentry issue
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-16] GtkSwitch: fix a reentry issue
- Date: Tue, 7 Jul 2015 14:34:32 +0000 (UTC)
commit d509888580e8d207b8e54e70d8ddf46f7a0fcff3
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 1 18:02:57 2015 -0700
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
gtk/gtkswitch.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index fbce536..a1d3c4c 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -1078,10 +1078,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]