[gtk+/gestures: 136/173] dnd: Check on the right gesture sequence when starting the drag op



commit 08198a9dc84f28a70c817a33aeaf3d19bbc192a4
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue May 6 17:27:17 2014 +0200

    dnd: Check on the right gesture sequence when starting the drag op

 gtk/gtkdnd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index f9452ed..49e93c5 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -3923,8 +3923,8 @@ gtk_drag_source_event_cb (GtkWidget      *widget,
           const GdkEvent *event;
           guint button;
 
-          sequence = gtk_gesture_get_last_updated_sequence (site->drag_gesture);
-          event = gtk_gesture_get_last_event (GTK_GESTURE (site->drag_gesture), sequence);
+          sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (site->drag_gesture));
+          event = gtk_gesture_get_last_event (site->drag_gesture, sequence);
           button = gtk_gesture_single_get_current_button (GTK_GESTURE_SINGLE (site->drag_gesture));
 
           gtk_event_controller_reset (GTK_EVENT_CONTROLLER (site->drag_gesture));


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