notebook: Handle touch events for tabs
authorTimm Bäder <mail@baedert.org>
Fri, 2 Feb 2018 14:22:22 +0000 (15:22 +0100)
committerTimm Bäder <mail@baedert.org>
Sat, 3 Feb 2018 11:23:00 +0000 (12:23 +0100)
No need to check for the event type here.

gtk/gtknotebook.c

index b14449dc9b1556a12922c5636dde8c6248ab2525..9e41a7f2bb4aa0e42d58a0c131c1625278d80d23 100644 (file)
@@ -2283,7 +2283,7 @@ gtk_notebook_gesture_pressed (GtkGestureMultiPress *gesture,
   button = gtk_gesture_single_get_current_button (GTK_GESTURE_SINGLE (gesture));
   event = gtk_gesture_get_last_event (GTK_GESTURE (gesture), sequence);
 
-  if (gdk_event_get_event_type (event) != GDK_BUTTON_PRESS || !priv->children)
+  if (!priv->children)
     return;
 
   arrow = gtk_notebook_get_arrow (notebook, x, y);