[gtk+] treeview: Avoid queueing a redraw in do_validate_rows()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] treeview: Avoid queueing a redraw in do_validate_rows()
- Date: Sat, 16 Apr 2011 23:30:12 +0000 (UTC)
commit 4594370b4619e431e7d96f9bb2eba234a34abf6d
Author: Kristian Rietveld <kris gtk org>
Date: Tue Apr 5 21:06:02 2011 +0200
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.
gtk/gtktreeview.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index cb6cfe8..ed45e3b 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]