[gtk+/gtk-3-14] range: Make zoom scrolling less sensitive



commit 4fbbb87be632dc1b04a4cc37d22019072d0eef90
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 22 17:57:23 2015 -0500

    range: Make zoom scrolling less sensitive
    
    Use the new long press delay factor to make the zoom
    scrolling less easy to trigger accidentally.

 gtk/gtkrange.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index fbb869c..b3d2896 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -34,6 +34,7 @@
 #include "gtkadjustmentprivate.h"
 #include "gtkcolorscaleprivate.h"
 #include "gtkintl.h"
+#include "gtkgesturelongpressprivate.h"
 #include "gtkmain.h"
 #include "gtkmarshalers.h"
 #include "gtkorientableprivate.h"
@@ -782,6 +783,7 @@ gtk_range_init (GtkRange *range)
                     G_CALLBACK (gtk_range_multipress_gesture_released), range);
 
   priv->long_press_gesture = gtk_gesture_long_press_new (GTK_WIDGET (range));
+  g_object_set (priv->long_press_gesture, "delay-factor", 2.0, NULL);
   gtk_gesture_group (priv->drag_gesture, priv->long_press_gesture);
   g_signal_connect (priv->long_press_gesture, "pressed",
                     G_CALLBACK (gtk_range_long_press_gesture_pressed), range);


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