[gtk+] gesture swipe: Use GdkEvent API
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gesture swipe: Use GdkEvent API
- Date: Tue, 19 Sep 2017 17:16:45 +0000 (UTC)
commit 54307516446cc4e33afaae3cc6c968fda8e3c3b6
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 26 10:53:01 2017 -0400
gesture swipe: Use GdkEvent API
gtk/gtkgestureswipe.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkgestureswipe.c b/gtk/gtkgestureswipe.c
index bcdd2d1..bb35572 100644
--- a/gtk/gtkgestureswipe.c
+++ b/gtk/gtkgestureswipe.c
@@ -86,10 +86,13 @@ gtk_gesture_swipe_filter_event (GtkEventController *controller,
if (gdk_event_get_event_type (event) == GDK_TOUCHPAD_SWIPE)
{
guint n_points;
+ guint n_fingers;
g_object_get (G_OBJECT (controller), "n-points", &n_points, NULL);
- if (event->touchpad_swipe.n_fingers == n_points)
+ gdk_event_get_touchpad_gesture_n_fingers (event, &n_fingers);
+
+ if (n_fingers == n_points)
return FALSE;
else
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]