Commit c3075f1d authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

longpress: Ensure check() happens after cancel()

And delegate on GtkGesture::check(), it does deal better with
extra fleeting touches.
parent c506dfe6
......@@ -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);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment