summaryrefslogtreecommitdiff
path: root/gtk/gtkgesturepan.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-05-16 18:33:05 +0200
committerCarlos Garnacho <carlosg@gnome.org>2014-05-23 19:54:31 +0200
commitbd68db4b256b3bc15f0d1be5bc8956cee298fb89 (patch)
tree32ea8fd430c28b6cbfc3c9d9cd9a86063aeb5518 /gtk/gtkgesturepan.c
parente70e3963dd01798f771432635274d6678d73a9da (diff)
downloadgtk+-bd68db4b256b3bc15f0d1be5bc8956cee298fb89.tar.gz
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.
Diffstat (limited to 'gtk/gtkgesturepan.c')
-rw-r--r--gtk/gtkgesturepan.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gtk/gtkgesturepan.c b/gtk/gtkgesturepan.c
index b166388b38..660f3d9b31 100644
--- a/gtk/gtkgesturepan.c
+++ b/gtk/gtkgesturepan.c
@@ -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) ||