[gtk+/gestures] pan: Remove wrong check
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gestures] pan: Remove wrong check
- Date: Fri, 16 May 2014 16:40:53 +0000 (UTC)
commit 73a81bbf6592436385cc7de3540ba1757d58185b
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri May 16 18:33:05 2014 +0200
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.
gtk/gtkgesturepan.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkgesturepan.c b/gtk/gtkgesturepan.c
index b166388..660f3d9 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) ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]