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:
Kristian Rietveld 2011-04-05 21:06:02 +02:00 committed by Benjamin Otte
parent a5e1337ad7
commit 4594370b46

View File

@ -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);