From 1bdf71943fc1ee06df3a5e091987b7fb7b13c08d Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Sun, 19 Jun 2005 18:40:35 +0000 Subject: [PATCH] only keep the row at the same position if the full row is visible. 2005-06-19 Kristian Rietveld * gtk/gtktreeview.c (validate_visible_area): only keep the row at the same position if the full row is visible. (#304623, Jorn Baayen). --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtktreeview.c | 4 ++-- 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2e07d7ed97..7da0dce54e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-06-19 Kristian Rietveld + + * gtk/gtktreeview.c (validate_visible_area): only keep the + row at the same position if the full row is visible. (#304623, + Jorn Baayen). + 2005-06-19 Kristian Rietveld * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 2e07d7ed97..7da0dce54e 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2005-06-19 Kristian Rietveld + + * gtk/gtktreeview.c (validate_visible_area): only keep the + row at the same position if the full row is visible. (#304623, + Jorn Baayen). + 2005-06-19 Kristian Rietveld * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 2e07d7ed97..7da0dce54e 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2005-06-19 Kristian Rietveld + + * gtk/gtktreeview.c (validate_visible_area): only keep the + row at the same position if the full row is visible. (#304623, + Jorn Baayen). + 2005-06-19 Kristian Rietveld * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 18ba1d47ed..28e1218913 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -4703,8 +4703,8 @@ validate_visible_area (GtkTreeView *tree_view) dy = _gtk_rbtree_node_find_offset (tree, node); if (dy >= tree_view->priv->vadjustment->value && - dy < (tree_view->priv->vadjustment->value - + tree_view->priv->vadjustment->page_size)) + dy + height <= (tree_view->priv->vadjustment->value + + tree_view->priv->vadjustment->page_size)) { /* row visible: keep the row at the same position */ area_above = dy - tree_view->priv->vadjustment->value;