mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
GtkScrolledWindow: Animate the scroll-child keybinding
This commit is contained in:
parent
36453a8a6b
commit
939fbc43e1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user