[gtk: 1/2] treeview: Do not set top row adjustment value while animating
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] treeview: Do not set top row adjustment value while animating
- Date: Sun, 14 Aug 2022 22:40:33 +0000 (UTC)
commit b4ade026f1bda444d9b6e60e9d8c2e18dad587ff
Author: Mat <mail mathias is>
Date: Wed Aug 10 08:26:02 2022 +0300
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
gtk/gtktreeview.c | 3 +++
1 file changed, 3 insertions(+)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]