longpress: Ensure check() happens after cancel()

And delegate on GtkGesture::check(), it does deal better with
extra fleeting touches.
This commit is contained in:
Carlos Garnacho 2014-04-08 21:11:27 +02:00
parent c506dfe600
commit c3075f1d56

View File

@ -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);
}
}