summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2005-06-19 18:40:35 +0000
committerKristian Rietveld <kristian@src.gnome.org>2005-06-19 18:40:35 +0000
commit1bdf71943fc1ee06df3a5e091987b7fb7b13c08d (patch)
tree78551f3c19a3fee5111bf90df409f1774b0da8c7
parent9d1a05c3b93a05baaea3f17844079a0f4582d592 (diff)
downloadgtk+-1bdf71943fc1ee06df3a5e091987b7fb7b13c08d.tar.gz
only keep the row at the same position if the full row is visible.
2005-06-19 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeview.c (validate_visible_area): only keep the row at the same position if the full row is visible. (#304623, Jorn Baayen).
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--ChangeLog.pre-2-86
-rw-r--r--gtk/gtktreeview.c4
4 files changed, 20 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2e07d7ed97..7da0dce54e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-06-19 Kristian Rietveld <kris@gtk.org>
+ * 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 <kris@gtk.org>
+
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
if treeview's height is smaller than the current page_size (just
like we do elsewhere).
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,5 +1,11 @@
2005-06-19 Kristian Rietveld <kris@gtk.org>
+ * 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 <kris@gtk.org>
+
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
if treeview's height is smaller than the current page_size (just
like we do elsewhere).
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,5 +1,11 @@
2005-06-19 Kristian Rietveld <kris@gtk.org>
+ * 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 <kris@gtk.org>
+
* gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
if treeview's height is smaller than the current page_size (just
like we do elsewhere).
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;