diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-02-22 17:57:23 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-02-23 08:38:25 -0500 |
commit | 3222de2f9168f6a09901428a108eed5e499d5e77 (patch) | |
tree | 4f8d3e5eb53794a0167965da2695d50397917170 /gtk/gtkrange.c | |
parent | 2b6376248dab453b8e9600a8d37da2d2b7447a34 (diff) | |
download | gtk+-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.c | 2 |
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); |