Blame SOURCES/0001-GtkSwitch-fix-a-reentry-issue.patch
|
|
25dd04 |
From 051bd1a06bddca4c543821d630e5328bf51a55b8 Mon Sep 17 00:00:00 2001
|
|
|
25dd04 |
From: Matthias Clasen <mclasen@redhat.com>
|
|
|
25dd04 |
Date: Wed, 1 Jul 2015 18:02:57 -0700
|
|
|
25dd04 |
Subject: [PATCH] GtkSwitch: fix a reentry issue
|
|
|
25dd04 |
|
|
|
25dd04 |
The introduction of state broke some users which relied on
|
|
|
25dd04 |
being able to set active in a notify::active handler.
|
|
|
25dd04 |
|
|
|
25dd04 |
https://bugzilla.gnome.org/show_bug.cgi?id=751754
|
|
|
25dd04 |
---
|
|
|
25dd04 |
gtk/gtkswitch.c | 4 ++--
|
|
|
25dd04 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
25dd04 |
|
|
|
25dd04 |
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
|
|
|
25dd04 |
index 25897d5..3d16f16 100644
|
|
|
25dd04 |
--- a/gtk/gtkswitch.c
|
|
|
25dd04 |
+++ b/gtk/gtkswitch.c
|
|
|
25dd04 |
@@ -1102,10 +1102,10 @@ gtk_switch_set_active (GtkSwitch *sw,
|
|
|
25dd04 |
else
|
|
|
25dd04 |
priv->handle_x = 0;
|
|
|
25dd04 |
|
|
|
25dd04 |
- g_object_notify_by_pspec (G_OBJECT (sw), switch_props[PROP_ACTIVE]);
|
|
|
25dd04 |
-
|
|
|
25dd04 |
g_signal_emit (sw, signals[STATE_SET], 0, is_active, &handled);
|
|
|
25dd04 |
|
|
|
25dd04 |
+ g_object_notify_by_pspec (G_OBJECT (sw), switch_props[PROP_ACTIVE]);
|
|
|
25dd04 |
+
|
|
|
25dd04 |
accessible = gtk_widget_get_accessible (GTK_WIDGET (sw));
|
|
|
25dd04 |
atk_object_notify_state_change (accessible, ATK_STATE_CHECKED, priv->is_active);
|
|
|
25dd04 |
|
|
|
25dd04 |
--
|
|
|
25dd04 |
2.4.3
|
|
|
25dd04 |
|