[gtk/wip/baedert/for-master: 9/11] range: Use public delay-factory API
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 9/11] range: Use public delay-factory API
- Date: Sun, 11 Aug 2019 06:36:33 +0000 (UTC)
commit 2fb49c7d74fe6f48569883d643bde4cb669add86
Author: Timm Bäder <mail baedert org>
Date: Sat Aug 10 20:08:59 2019 +0200
range: Use public delay-factory API
gtk/gtkrange.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 0dffe25dab..992826d327 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -580,7 +580,7 @@ gtk_range_init (GtkRange *range)
gtk_gesture_group (priv->drag_gesture, gesture);
gesture = gtk_gesture_long_press_new ();
- g_object_set (gesture, "delay-factor", 2.0, NULL);
+ gtk_gesture_long_press_set_delay_factor (GTK_GESTURE_LONG_PRESS (gesture), 2.0);
g_signal_connect (gesture, "pressed",
G_CALLBACK (gtk_range_long_press_gesture_pressed), range);
gtk_widget_add_controller (GTK_WIDGET (range), GTK_EVENT_CONTROLLER (gesture));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]