[gtk+/gestures: 80/117] gesturemultipress: fix reentrancy on ::reset()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gestures: 80/117] gesturemultipress: fix reentrancy on ::reset()
- Date: Thu, 10 Apr 2014 20:31:25 +0000 (UTC)
commit f4848ae24e6178a5161a4230bcec93d36af9aca7
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Apr 8 21:09:44 2014 +0200
gesturemultipress: fix reentrancy on ::reset()
gtk/gtkgesturemultipress.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkgesturemultipress.c b/gtk/gtkgesturemultipress.c
index 6698ace..799f349 100644
--- a/gtk/gtkgesturemultipress.c
+++ b/gtk/gtkgesturemultipress.c
@@ -91,11 +91,9 @@ _gtk_gesture_multi_press_stop (GtkGestureMultiPress *gesture)
if (priv->n_presses == 0)
return;
- if (priv->n_presses != 0)
- g_signal_emit (gesture, signals[STOPPED], 0);
-
priv->current_button = 0;
priv->n_presses = 0;
+ g_signal_emit (gesture, signals[STOPPED], 0);
gtk_gesture_check (GTK_GESTURE (gesture));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]