[gtk+/wip/matthiasc/zoom-scroll-improvements: 2/4] range: Make zoom scrolling less sensitive
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/zoom-scroll-improvements: 2/4] range: Make zoom scrolling less sensitive
- Date: Mon, 23 Feb 2015 01:12:25 +0000 (UTC)
commit 361c64dba51d3b52172bdf84fd5105663a3f1dfa
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 404dc3a..761353c 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));
+ gtk_gesture_long_press_set_delay_factor (GTK_GESTURE_LONG_PRESS (priv->long_press_gesture), 2.0);
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]