diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2014-04-08 21:11:27 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2014-05-23 19:54:26 +0200 |
commit | c3075f1d565cf6d1fdd2d98d42639eae5bd83b47 (patch) | |
tree | 7c0987da82fe1d6c3b0a081b4522c37086863ea4 /gtk/gtkgesturelongpress.c | |
parent | c506dfe600b5556290e855e81ea4ec3798da8c66 (diff) | |
download | gtk+-c3075f1d565cf6d1fdd2d98d42639eae5bd83b47.tar.gz |
longpress: Ensure check() happens after cancel()
And delegate on GtkGesture::check(), it does deal better with
extra fleeting touches.
Diffstat (limited to 'gtk/gtkgesturelongpress.c')
-rw-r--r-- | gtk/gtkgesturelongpress.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkgesturelongpress.c b/gtk/gtkgesturelongpress.c index c833cead8b..79805a567c 100644 --- a/gtk/gtkgesturelongpress.c +++ b/gtk/gtkgesturelongpress.c @@ -62,7 +62,7 @@ gtk_gesture_long_press_check (GtkGesture *gesture) if (priv->cancelled) return FALSE; - return gtk_gesture_is_active (gesture); + return GTK_GESTURE_CLASS (gtk_gesture_long_press_parent_class)->check (gesture); } static gboolean @@ -136,6 +136,7 @@ gtk_gesture_long_press_update (GtkGesture *gesture, } priv->cancelled = TRUE; + gtk_gesture_check (gesture); } } |