pan: Remove wrong check

From the very early days where there were a NONE=0 GtkPanOrientation
value. This makes vertical pan operations work as expected.
This commit is contained in:
Carlos Garnacho 2014-05-16 18:33:05 +02:00
parent e70e3963dd
commit bd68db4b25

View File

@ -158,9 +158,6 @@ check_orientation_matches (GtkGesturePan *gesture,
{
GtkGesturePanPrivate *priv = gtk_gesture_pan_get_instance_private (gesture);
if (priv->orientation == 0)
return FALSE;
return (((direction == GTK_PAN_DIRECTION_LEFT ||
direction == GTK_PAN_DIRECTION_RIGHT) &&
priv->orientation == GTK_PAN_ORIENTATION_HORIZONTAL) ||