set dy to page_size + height in the event dy + page_size is about to

2006-05-26  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_top_row_to_dy): set dy to
	page_size + height in the event dy + page_size is about to become
	bigger than height.
This commit is contained in:
Kristian Rietveld 2006-05-26 00:00:50 +00:00 committed by Kristian Rietveld
parent 433b780e14
commit 7bae68f0b7
3 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2006-05-26 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_top_row_to_dy): set dy to
page_size + height in the event dy + page_size is about to become
bigger than height.
2006-05-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:

View File

@ -1,3 +1,9 @@
2006-05-26 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_top_row_to_dy): set dy to
page_size + height in the event dy + page_size is about to become
bigger than height.
2006-05-25 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:

View File

@ -5614,6 +5614,10 @@ gtk_tree_view_top_row_to_dy (GtkTreeView *tree_view)
tree_view->priv->dy = _gtk_rbtree_node_find_offset (tree, node);
tree_view->priv->dy += tree_view->priv->top_row_dy;
if (tree_view->priv->dy + tree_view->priv->vadjustment->page_size > tree_view->priv->height)
tree_view->priv->dy = tree_view->priv->height - tree_view->priv->vadjustment->page_size;
gtk_adjustment_set_value (tree_view->priv->vadjustment,
(gdouble)tree_view->priv->dy);
}