[gtk+/gestures: 28/140] gesture: Only track non denied sequences in get_last_updated_sequence()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gestures: 28/140] gesture: Only track non denied sequences in get_last_updated_sequence()
- Date: Wed, 7 May 2014 08:56:48 +0000 (UTC)
commit 27b8d1b673fba244e9e8eb47a4a9c0890a470fc2
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Mar 21 17:34:41 2014 +0100
gesture: Only track non denied sequences in get_last_updated_sequence()
gtk/gtkgesture.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index 603e3e4..d7118f1 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -363,9 +363,10 @@ gtk_gesture_handle_event (GtkEventController *controller,
priv = gtk_gesture_get_instance_private (gesture);
sequence = gdk_event_get_event_sequence (event);
- priv->last_sequence = sequence;
was_recognized = gtk_gesture_is_recognized (gesture);
+ if (gtk_gesture_get_sequence_state (gesture, sequence) != GTK_EVENT_SEQUENCE_DENIED)
+ priv->last_sequence = sequence;
switch (event->type)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]