aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@novell.com>2004-06-09 05:00:11 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-06-09 05:00:11 +0800
commit92ee59e495307a7b1e45266e12ad9a1b0d74cd8b (patch)
tree650016b369eccd3038d973989a2c1c7d3ef3f497 /mail
parent3db54a38ad51f5fe49f2bfa390f691f680d031f5 (diff)
downloadgsoc2013-evolution-92ee59e495307a7b1e45266e12ad9a1b0d74cd8b.tar.gz
gsoc2013-evolution-92ee59e495307a7b1e45266e12ad9a1b0d74cd8b.tar.zst
gsoc2013-evolution-92ee59e495307a7b1e45266e12ad9a1b0d74cd8b.zip
Scroll to the selected folder if needed. Fixes bug #59609.
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. svn path=/trunk/; revision=26262
Diffstat (limited to 'mail')
-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);