remove unneeded check for negative window_y.

2005-07-10  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): remove
	unneeded check for negative window_y.
This commit is contained in:
Kristian Rietveld 2005-07-10 17:19:01 +00:00 committed by Kristian Rietveld
parent 53db7cc902
commit 4b28e78a48
4 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2005-07-10 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): remove
unneeded check for negative window_y.
2005-07-10 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): also move

View File

@ -1,3 +1,8 @@
2005-07-10 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): remove
unneeded check for negative window_y.
2005-07-10 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): also move

View File

@ -1,3 +1,8 @@
2005-07-10 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): remove
unneeded check for negative window_y.
2005-07-10 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeview.c (gtk_tree_view_search_key_press_event): also move

View File

@ -8654,10 +8654,7 @@ gtk_tree_view_move_cursor_page_up_down (GtkTreeView *tree_view,
gtk_tree_view_real_set_cursor (tree_view, cursor_path, TRUE, FALSE);
gtk_tree_path_free (cursor_path);
if (window_y < 0)
window_y = 0;
y -= window_y;
gtk_tree_view_scroll_to_point (tree_view, -1, y);
}