notebook: Handle touch events for tabs

No need to check for the event type here.
This commit is contained in:
Timm Bäder 2018-02-02 15:22:22 +01:00
parent 98e30f82b9
commit 3d65019e98

View 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);