Commit 3222de2f authored by Matthias Clasen's avatar Matthias Clasen

range: Make zoom scrolling less sensitive

Use the new long press delay factor to make the zoom
scrolling less easy to trigger accidentally.
parent 2b637624
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment