Fix an off-by-one error. (#141809, Markku Vire)

* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): Fix
	an off-by-one error.  (#141809, Markku Vire)
This commit is contained in:
Matthias Clasen 2004-08-06 17:38:51 +00:00
parent 39469f8f4a
commit 1629735020
5 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2004-08-06 Matthias Clasen <mclasen@redhat.com> 2004-08-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): Fix
an off-by-one error. (#141809, Markku Vire)
* gtk/gtkdnd.c (gtk_drag_dest_set, gtk_drag_source_set): Really * gtk/gtkdnd.c (gtk_drag_dest_set, gtk_drag_source_set): Really
fix the initialization of the target list. fix the initialization of the target list.

View File

@ -1,5 +1,8 @@
2004-08-06 Matthias Clasen <mclasen@redhat.com> 2004-08-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): Fix
an off-by-one error. (#141809, Markku Vire)
* gtk/gtkdnd.c (gtk_drag_dest_set, gtk_drag_source_set): Really * gtk/gtkdnd.c (gtk_drag_dest_set, gtk_drag_source_set): Really
fix the initialization of the target list. fix the initialization of the target list.

View File

@ -1,5 +1,8 @@
2004-08-06 Matthias Clasen <mclasen@redhat.com> 2004-08-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): Fix
an off-by-one error. (#141809, Markku Vire)
* gtk/gtkdnd.c (gtk_drag_dest_set, gtk_drag_source_set): Really * gtk/gtkdnd.c (gtk_drag_dest_set, gtk_drag_source_set): Really
fix the initialization of the target list. fix the initialization of the target list.

View File

@ -1,5 +1,8 @@
2004-08-06 Matthias Clasen <mclasen@redhat.com> 2004-08-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): Fix
an off-by-one error. (#141809, Markku Vire)
* gtk/gtkdnd.c (gtk_drag_dest_set, gtk_drag_source_set): Really * gtk/gtkdnd.c (gtk_drag_dest_set, gtk_drag_source_set): Really
fix the initialization of the target list. fix the initialization of the target list.

View File

@ -8420,7 +8420,7 @@ gtk_tree_view_move_cursor_page_up_down (GtkTreeView *tree_view,
y += ROW_HEIGHT (tree_view, GTK_RBNODE_GET_HEIGHT (cursor_node)); y += ROW_HEIGHT (tree_view, GTK_RBNODE_GET_HEIGHT (cursor_node));
y = CLAMP (y, (gint)tree_view->priv->vadjustment->lower, (gint)tree_view->priv->vadjustment->upper - vertical_separator); y = CLAMP (y, (gint)tree_view->priv->vadjustment->lower, (gint)tree_view->priv->vadjustment->upper - vertical_separator);
if (y > tree_view->priv->height) if (y >= tree_view->priv->height)
y = tree_view->priv->height - 1; y = tree_view->priv->height - 1;
_gtk_rbtree_find_offset (tree_view->priv->tree, y, &cursor_tree, &cursor_node); _gtk_rbtree_find_offset (tree_view->priv->tree, y, &cursor_tree, &cursor_node);