mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +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;
|
return FALSE;
|
||||||
|
|
||||||
if (horizontal)
|
if (horizontal)
|
||||||
{
|
adjustment = gtk_range_get_adjustment (GTK_RANGE (priv->hscrollbar));
|
||||||
adjustment = gtk_range_get_adjustment (GTK_RANGE (priv->hscrollbar));
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
adjustment = gtk_range_get_adjustment (GTK_RANGE (priv->vscrollbar));
|
||||||
adjustment = gtk_range_get_adjustment (GTK_RANGE (priv->vscrollbar));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (adjustment)
|
if (adjustment)
|
||||||
{
|
{
|
||||||
@ -1782,7 +1778,7 @@ gtk_scrolled_window_scroll_child (GtkScrolledWindow *scrolled_window,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_adjustment_set_value (adjustment, value);
|
gtk_adjustment_animate_to_value (adjustment, value);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user