make sure the new cursor node is visible when we are done. (Fixes #472965,

2007-10-09  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): make
	sure the new cursor node is visible when we are done. (Fixes #472965,
	Carlos Garnacho).


svn path=/trunk/; revision=18899
This commit is contained in:
Kristian Rietveld 2007-10-09 19:40:14 +00:00 committed by Kristian Rietveld
parent 449db79467
commit 18b264b5e0
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2007-10-09 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): make
sure the new cursor node is visible when we are done. (Fixes #472965,
Carlos Garnacho).
2007-10-09 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): we should

View File

@ -9864,6 +9864,7 @@ gtk_tree_view_move_cursor_page_up_down (GtkTreeView *tree_view,
y -= window_y;
gtk_tree_view_scroll_to_point (tree_view, -1, y);
gtk_tree_view_clamp_node_visible (tree_view, cursor_tree, cursor_node);
_gtk_tree_view_queue_draw_node (tree_view, cursor_tree, cursor_node, NULL);
if (!gtk_tree_path_compare (old_cursor_path, cursor_path))