From 18b264b5e0596504715e57f74b4e76fc417b7965 Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Tue, 9 Oct 2007 19:40:14 +0000 Subject: [PATCH] make sure the new cursor node is visible when we are done. (Fixes #472965, 2007-10-09 Kristian Rietveld * 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 --- ChangeLog | 6 ++++++ gtk/gtktreeview.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 81b823fc75..59644d0825 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-10-09 Kristian Rietveld + + * 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 * gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): we should diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 37d5b9c34b..5b393a385b 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -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))