[gtk+] notebook: Handle touch events for tabs



commit 3d65019e98dabc0e2f443d981590983e618dda44
Author: Timm Bäder <mail baedert org>
Date:   Fri Feb 2 15:22:22 2018 +0100

    notebook: Handle touch events for tabs
    
    No need to check for the event type here.

 gtk/gtknotebook.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index b14449d..9e41a7f 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -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);


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