mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 13:30:19 +00:00
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:
parent
433b780e14
commit
7bae68f0b7
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user