From ce0f8cd06e231e2fc125401a4339b5e628cd9ffd Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 12 Apr 2004 19:11:14 +0000 Subject: Scroll to the auto-selected folder. Fixes bug #56707. 2004-04-12 Jeffrey Stedfast * em-folder-tree.c (em_folder_tree_set_selected): Scroll to the auto-selected folder. Fixes bug #56707. svn path=/trunk/; revision=25418 --- mail/ChangeLog | 3 +++ mail/em-folder-tree.c | 1 + 2 files changed, 4 insertions(+) diff --git a/mail/ChangeLog b/mail/ChangeLog index d9f4a9ab01..2e57296605 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,8 @@ 2004-04-12 Jeffrey Stedfast + * em-folder-tree.c (em_folder_tree_set_selected): Scroll to the + auto-selected folder. Fixes bug #56707. + * message-list.c (message_list_get_scrollbar_position): New function. (message_list_set_scrollbar_position): New function. diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index fdf75d9d17..0987ff04b6 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -2743,6 +2743,7 @@ em_folder_tree_set_selected (EMFolderTree *emft, const char *uri) gtk_tree_view_expand_to_path (priv->treeview, tree_path); selection = gtk_tree_view_get_selection (priv->treeview); gtk_tree_selection_select_path (selection, tree_path); + gtk_tree_view_scroll_to_cell (priv->treeview, tree_path, NULL, FALSE, 0.0, 0.0); gtk_tree_path_free (tree_path); camel_object_unref (store); g_free (path); -- cgit