summaryrefslogtreecommitdiff
path: root/gtk/gtktreeview.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2003-12-20 21:08:24 +0000
committerKristian Rietveld <kristian@src.gnome.org>2003-12-20 21:08:24 +0000
commit5f65142b3ca6c8885273a60e61a0cc0c1a151da8 (patch)
tree6283afcfd7e50ea6538168b0f983543c248fa84e /gtk/gtktreeview.c
parent807bce8170b16c73f3fadd12d235c9ac006d76c0 (diff)
downloadgdk-pixbuf-5f65142b3ca6c8885273a60e61a0cc0c1a151da8.tar.gz
do not invalidate all of treeview when resizing (#110074, patch from
Sat Dec 20 22:06:03 2003 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (gtk_tree_view_size_allocate): do not invalidate all of treeview when resizing (#110074, patch from Soeren Sandmann).
Diffstat (limited to 'gtk/gtktreeview.c')
-rw-r--r--gtk/gtktreeview.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 4222153b0..c8c2ffb2f 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -1933,9 +1933,11 @@ gtk_tree_view_size_allocate (GtkWidget *widget,
if (tree_view->priv->vadjustment->value + allocation->height - TREE_VIEW_HEADER_HEIGHT (tree_view) > tree_view->priv->height)
{
- dy_changed = TRUE;
+ double before = tree_view->priv->vadjustment->value;
gtk_adjustment_set_value (tree_view->priv->vadjustment,
MAX (tree_view->priv->height - tree_view->priv->vadjustment->page_size, 0));
+ if (before != tree_view->priv->vadjustment->value)
+ dy_changed = TRUE;
}
gtk_adjustment_changed (tree_view->priv->vadjustment);