projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98e30f8
)
notebook: Handle touch events for tabs
author
Timm Bäder
<mail@baedert.org>
Fri, 2 Feb 2018 14:22:22 +0000
(15:22 +0100)
committer
Timm 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
patch
|
blob
|
history
diff --git
a/gtk/gtknotebook.c
b/gtk/gtknotebook.c
index b14449dc9b1556a12922c5636dde8c6248ab2525..9e41a7f2bb4aa0e42d58a0c131c1625278d80d23 100644
(file)
--- 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);