[gtk+/gestures: 39/92] gesture: check the gesture after denying a sequence.



commit 47e865e39769469636f82e74959b89f08ca55658
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Mar 24 13:11:47 2014 +0100

    gesture: check the gesture after denying a sequence.
    
    So the gesture emits end() timely.

 gtk/gtkgesture.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index 861003c..0f0fb9a 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -662,6 +662,10 @@ gtk_gesture_set_sequence_state (GtkGesture            *gesture,
   data->state = state;
   g_signal_emit (gesture, signals[SEQUENCE_STATE_CHANGED], 0,
                  sequence, old_state);
+
+  if (state == GTK_EVENT_SEQUENCE_DENIED)
+    _gtk_gesture_check_recognized (gesture, sequence);
+
   return TRUE;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]