[gtk+/gestures: 79/173] gesturemultipress: fix reentrancy on ::reset()



commit a9b2f0b2e2ad415b07407051ec15e6fdcb6f5e44
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]