Scroll to the auto-selected folder. Fixes bug #56707.

2004-04-12  Jeffrey Stedfast  <fejj@ximian.com>

	* em-folder-tree.c (em_folder_tree_set_selected): Scroll to the
	auto-selected folder. Fixes bug #56707.

svn path=/trunk/; revision=25418
This commit is contained in:
Jeffrey Stedfast
2004-04-12 19:11:14 +00:00
committed by Jeffrey Stedfast
parent 315602a740
commit ce0f8cd06e
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2004-04-12 Jeffrey Stedfast <fejj@ximian.com>
* 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.

View File

@ -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);