summaryrefslogtreecommitdiff
path: root/gtk/gtkgesturedrag.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkgesturedrag.c')
-rw-r--r--gtk/gtkgesturedrag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkgesturedrag.c b/gtk/gtkgesturedrag.c
index 59fdc2aa62..f82d13dc63 100644
--- a/gtk/gtkgesturedrag.c
+++ b/gtk/gtkgesturedrag.c
@@ -62,7 +62,7 @@ gtk_gesture_drag_filter_event (GtkEventController *controller,
const GdkEvent *event)
{
/* Let touchpad swipe events go through, only if they match n-points */
- if (event->type == GDK_TOUCHPAD_SWIPE)
+ if (gdk_event_get_event_type (event) == GDK_TOUCHPAD_SWIPE)
{
guint n_points;