mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 07:04:29 +00:00
treeview: Avoid queueing a redraw in do_validate_rows()
If the changed rows are not visible, we likely do not have to redraw in conjunction to resize. Spotted by Benjamin Otte.
This commit is contained in:
parent
a5e1337ad7
commit
4594370b46
@ -6764,7 +6764,7 @@ do_validate_rows (GtkTreeView *tree_view, gboolean queue_resize)
|
||||
MAX (gtk_adjustment_get_upper (tree_view->priv->vadjustment), requisition.height));
|
||||
|
||||
if (queue_resize)
|
||||
gtk_widget_queue_resize (GTK_WIDGET (tree_view));
|
||||
gtk_widget_queue_resize_no_redraw (GTK_WIDGET (tree_view));
|
||||
}
|
||||
|
||||
if (path) gtk_tree_path_free (path);
|
||||
|
Loading…
Reference in New Issue
Block a user