aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/em-folder-tree.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 391efb7fd5..1802843f6b 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2004-06-08 Jeffrey Stedfast <fejj@novell.com>
+ * em-folder-tree.c (em_folder_tree_set_selected): Scroll to the
+ selected folder if needed. Fixes bug #59609.
+
* em-folder-selector.c (em_folder_selector_construct): Make the
chooser non-modal. Fixes bug #53735.
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 163f834a6f..101e593b96 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -2728,7 +2728,8 @@ 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_set_cursor(priv->treeview, tree_path, NULL, FALSE);
+ gtk_tree_view_set_cursor (priv->treeview, tree_path, NULL, FALSE);
+ gtk_tree_view_scroll_to_cell (priv->treeview, tree_path, NULL, TRUE, 0.8f, 0.0f);
gtk_tree_path_free (tree_path);
camel_object_unref (store);
g_free (path);