diff options
author | Mat <mail@mathias.is> | 2022-08-10 08:26:02 +0300 |
---|---|---|
committer | Mat <mail@mathias.is> | 2022-08-10 08:32:47 +0300 |
commit | b4ade026f1bda444d9b6e60e9d8c2e18dad587ff (patch) | |
tree | 24df028a6d6927a8bc7d274fd676c73ae2df213b /gtk/gtktreeview.c | |
parent | 378ae4fbc199342d76d86b8b83f0f190e9b4d6c2 (diff) | |
download | gtk+-b4ade026f1bda444d9b6e60e9d8c2e18dad587ff.tar.gz |
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
Diffstat (limited to 'gtk/gtktreeview.c')
-rw-r--r-- | gtk/gtktreeview.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index dc152898fd..bb45cb79a9 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -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 |