treeview: Do not set top row adjustment value while animating

gtk_tree_view_top_row_to_dy, which is called from GtkTreeView's
size_allocate function, changes the adjustment value. Since this
conflicts with the animation when changing the active row, bail
out until the animation is finished.

Fixes #4550
This commit is contained in:
Mat 2022-08-10 08:26:02 +03:00
parent 378ae4fbc1
commit b4ade026f1

View File

@ -6493,6 +6493,9 @@ gtk_tree_view_top_row_to_dy (GtkTreeView *tree_view)
if (priv->in_top_row_to_dy)
return;
if (gtk_adjustment_is_animating (priv->vadjustment))
return;
if (priv->top_row)
path = gtk_tree_row_reference_get_path (priv->top_row);
else