aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@gnome.org>2010-07-19 21:21:02 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-07-26 09:30:01 +0800
commit2de358e20bb5eab87feb6b2b5828cff23ed3cba5 (patch)
tree06dc6a19cda93be565ff631056f5aadf9039c345
parentcde4f869c893e145e45f58423e5b782e2fc3f85b (diff)
downloadgsoc2013-evolution-2de358e20bb5eab87feb6b2b5828cff23ed3cba5.tar
gsoc2013-evolution-2de358e20bb5eab87feb6b2b5828cff23ed3cba5.tar.gz
gsoc2013-evolution-2de358e20bb5eab87feb6b2b5828cff23ed3cba5.tar.bz2
gsoc2013-evolution-2de358e20bb5eab87feb6b2b5828cff23ed3cba5.tar.lz
gsoc2013-evolution-2de358e20bb5eab87feb6b2b5828cff23ed3cba5.tar.xz
gsoc2013-evolution-2de358e20bb5eab87feb6b2b5828cff23ed3cba5.tar.zst
gsoc2013-evolution-2de358e20bb5eab87feb6b2b5828cff23ed3cba5.zip
Select folder tree based on the tab selected.
-rw-r--r--mail/e-mail-notebook-view.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/mail/e-mail-notebook-view.c b/mail/e-mail-notebook-view.c
index 6310ef1c0f..9d13bb11de 100644
--- a/mail/e-mail-notebook-view.c
+++ b/mail/e-mail-notebook-view.c
@@ -30,6 +30,7 @@
#include "mail/e-mail-reader.h"
#include "mail/message-list.h"
+#include "mail/em-folder-tree.h"
#include "e-mail-notebook-view.h"
#include "e-mail-folder-pane.h"
#include "e-mail-message-pane.h"
@@ -80,7 +81,7 @@ start_tab_switch_cb (ClutterAnimation *animation,
struct _anim_data *data)
{
gtk_notebook_set_current_page (data->view->priv->book, data->page);
- animation = clutter_actor_animate ((ClutterActor *)data->view->priv->actor, CLUTTER_EASE_IN_SINE, 75,
+ animation = clutter_actor_animate ((ClutterActor *)data->view->priv->actor, CLUTTER_EASE_IN_SINE, 150,
"opacity", 255,
NULL);
@@ -97,7 +98,7 @@ mnv_set_current_tab (EMailNotebookView *view,
data->view = view;
data->page = page;
- animation = clutter_actor_animate ((ClutterActor *)view->priv->actor, CLUTTER_EASE_OUT_SINE, 75,
+ animation = clutter_actor_animate ((ClutterActor *)view->priv->actor, CLUTTER_EASE_OUT_SINE, 150,
"opacity", 0,
NULL);
g_signal_connect_after (animation, "completed", G_CALLBACK(start_tab_switch_cb), data);
@@ -146,6 +147,16 @@ mnv_page_changed (GtkNotebook *book, GtkNotebookPage *page,
guint page_num, EMailNotebookView *view)
{
EMailView *mview = (EMailView *)gtk_notebook_get_nth_page (book, page_num);
+ EShellContent *content = E_MAIL_VIEW(view)->content;
+ EShellView *shell_view = e_shell_content_get_shell_view (content);
+ EShellSidebar *sidebar = e_shell_view_get_shell_sidebar (shell_view);
+ EMFolderTree *tree;
+ const char *uri = e_mail_reader_get_folder_uri (E_MAIL_READER(mview));
+
+
+ g_object_get (sidebar, "folder-tree", &tree, NULL);
+ if (uri)
+ em_folder_tree_set_selected (tree, uri, FALSE);
view->priv->current_view = mview;
/* For EMailReader related changes to EShellView*/
@@ -738,7 +749,7 @@ mail_netbook_view_open_mail (EMailView *view, const char *uid, EMailNotebookView
FALSE);
#endif
pane = e_mail_message_pane_new (E_MAIL_VIEW(nview)->content);
- priv->current_view = pane;
+ priv->current_view = (EMailView *)pane;
gtk_widget_show (pane);
folder = e_mail_reader_get_folder (E_MAIL_READER(view));