diff options
Diffstat (limited to 'gtk/gtkrange.c')
-rw-r--r-- | gtk/gtkrange.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index 009293dd74..b848e623a2 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -236,7 +236,7 @@ static void gtk_range_allocate_trough (GtkGizmo *gi static gboolean gtk_range_render_trough (GtkGizmo *gizmo, GtkSnapshot *snapshot); -static void gtk_range_scroll_controller_scroll (GtkEventControllerScroll *scroll, +static gboolean gtk_range_scroll_controller_scroll (GtkEventControllerScroll *scroll, gdouble dx, gdouble dy, GtkRange *range); @@ -2228,7 +2228,7 @@ stop_scrolling (GtkRange *range) remove_autoscroll (range); } -static void +static gboolean gtk_range_scroll_controller_scroll (GtkEventControllerScroll *scroll, gdouble dx, gdouble dy, @@ -2262,6 +2262,8 @@ gtk_range_scroll_controller_scroll (GtkEventControllerScroll *scroll, g_signal_emit (range, signals[CHANGE_VALUE], 0, GTK_SCROLL_JUMP, gtk_adjustment_get_value (priv->adjustment) + delta, &handled); + + return TRUE; } static void |