[gtk+/gestures: 80/92] gesturemultipress: fix reentrancy on ::reset()



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