From 939fbc43e10b60dfb0406cf317d3266ff2f41e02 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 2 Jul 2014 20:26:43 -0400 Subject: [PATCH] GtkScrolledWindow: Animate the scroll-child keybinding --- gtk/gtkscrolledwindow.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index 9eba535269..c6ca6e0a58 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -1745,13 +1745,9 @@ gtk_scrolled_window_scroll_child (GtkScrolledWindow *scrolled_window, return FALSE; if (horizontal) - { - adjustment = gtk_range_get_adjustment (GTK_RANGE (priv->hscrollbar)); - } + adjustment = gtk_range_get_adjustment (GTK_RANGE (priv->hscrollbar)); else - { - adjustment = gtk_range_get_adjustment (GTK_RANGE (priv->vscrollbar)); - } + adjustment = gtk_range_get_adjustment (GTK_RANGE (priv->vscrollbar)); if (adjustment) { @@ -1782,7 +1778,7 @@ gtk_scrolled_window_scroll_child (GtkScrolledWindow *scrolled_window, break; } - gtk_adjustment_set_value (adjustment, value); + gtk_adjustment_animate_to_value (adjustment, value); return TRUE; }