[gtk+/gestures: 129/173] pan: make the direction factor less narrow in v/h directions



commit 9417f8cf1d06504eda8653e9453a6ee28943a70d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue May 6 11:39:15 2014 +0200

    pan: make the direction factor less narrow in v/h directions

 gtk/gtkgesturepan.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkgesturepan.c b/gtk/gtkgesturepan.c
index a4e7917..b166388 100644
--- a/gtk/gtkgesturepan.c
+++ b/gtk/gtkgesturepan.c
@@ -64,7 +64,7 @@ enum {
 
 static guint signals[N_SIGNALS] = { 0 };
 
-G_DEFINE_TYPE (GtkGesturePan, gtk_gesture_pan, GTK_TYPE_GESTURE_DRAG)
+G_DEFINE_TYPE_WITH_PRIVATE (GtkGesturePan, gtk_gesture_pan, GTK_TYPE_GESTURE_DRAG)
 
 static void
 gtk_gesture_pan_get_property (GObject    *object,
@@ -138,7 +138,7 @@ guess_direction (GtkGesturePan   *gesture,
   abs_x = ABS (offset_x);
   abs_y = ABS (offset_y);
 
-#define FACTOR 3
+#define FACTOR 2
   if (abs_x > abs_y * FACTOR)
     direction_from_offset (offset_x, offset_y,
                            GTK_PAN_ORIENTATION_HORIZONTAL, direction);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]