summaryrefslogtreecommitdiff
path: root/gtk/gtkrange.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-02-22 17:57:23 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-02-23 08:38:25 -0500
commit3222de2f9168f6a09901428a108eed5e499d5e77 (patch)
tree4f8d3e5eb53794a0167965da2695d50397917170 /gtk/gtkrange.c
parent2b6376248dab453b8e9600a8d37da2d2b7447a34 (diff)
downloadgtk+-3222de2f9168f6a09901428a108eed5e499d5e77.tar.gz
range: Make zoom scrolling less sensitive
Use the new long press delay factor to make the zoom scrolling less easy to trigger accidentally.
Diffstat (limited to 'gtk/gtkrange.c')
-rw-r--r--gtk/gtkrange.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 277b78d683..eca5d19d13 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"
@@ -764,6 +765,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);