[balsa/wip/gtk4: 268/351] balsa-index: Use gtk_gesture_single API



commit 98a529a5aad0ff1df46702b99110efb72c15674a
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Apr 1 20:14:26 2018 -0400

    balsa-index: Use gtk_gesture_single API
    
    Use gtk_gesture_single_get_current_sequence to, well, get the current
    sequence.

 src/balsa-index.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/balsa-index.c b/src/balsa-index.c
index c40afcb..3770bbe 100644
--- a/src/balsa-index.c
+++ b/src/balsa-index.c
@@ -617,13 +617,15 @@ bndx_gesture_pressed_cb(GtkGestureMultiPress *multi_press,
                         gpointer              user_data)
 {
     GtkGesture *gesture;
+    GdkEventSequence *sequence;
     const GdkEvent *event;
     BalsaIndex *index;
     GtkTreeView *tree_view;
     GtkTreePath *path;
 
     gesture = GTK_GESTURE(multi_press);
-    event = gtk_gesture_get_last_event(gesture, gtk_gesture_get_last_updated_sequence(gesture));
+    sequence = gtk_gesture_single_get_current_sequence(GTK_GESTURE_SINGLE(multi_press));
+    event = gtk_gesture_get_last_event(gesture, sequence);
     g_return_if_fail(event != NULL);
     if (!gdk_event_triggers_context_menu(event))
         return;


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