aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-shell-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-03 07:07:06 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:05 +0800
commit282701a518017e2e6ba3f7910e045c2bbe052190 (patch)
tree62ec7567a542a54baf81132e45fe7e75bc2cc6e6 /modules/mail/e-mail-shell-view.c
parenta216303baf631f18b592b3e5bb051b3741846477 (diff)
downloadgsoc2013-evolution-282701a518017e2e6ba3f7910e045c2bbe052190.tar
gsoc2013-evolution-282701a518017e2e6ba3f7910e045c2bbe052190.tar.gz
gsoc2013-evolution-282701a518017e2e6ba3f7910e045c2bbe052190.tar.bz2
gsoc2013-evolution-282701a518017e2e6ba3f7910e045c2bbe052190.tar.lz
gsoc2013-evolution-282701a518017e2e6ba3f7910e045c2bbe052190.tar.xz
gsoc2013-evolution-282701a518017e2e6ba3f7910e045c2bbe052190.tar.zst
gsoc2013-evolution-282701a518017e2e6ba3f7910e045c2bbe052190.zip
Add em_folder_tree_get_selected_account().
Comes in handy for a few EMailShellView actions.
Diffstat (limited to 'modules/mail/e-mail-shell-view.c')
-rw-r--r--modules/mail/e-mail-shell-view.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c
index 7655fba835..4af7de5a1b 100644
--- a/modules/mail/e-mail-shell-view.c
+++ b/modules/mail/e-mail-shell-view.c
@@ -844,7 +844,7 @@ mail_shell_view_update_actions (EShellView *shell_view)
EMailBackend *backend;
EMailSession *session;
EMailView *mail_view;
- EAccount *account = NULL;
+ EAccount *account;
GtkAction *action;
GList *list;
const gchar *label;
@@ -902,6 +902,8 @@ mail_shell_view_update_actions (EShellView *shell_view)
(state & E_MAIL_SIDEBAR_STORE_SUPPORTS_SUBSCRIPTIONS);
uri = em_folder_tree_get_selected_uri (folder_tree);
+ account = em_folder_tree_get_selected_account (folder_tree);
+
if (uri != NULL) {
GtkTreeRowReference *reference;
EMFolderTreeModel *model;
@@ -919,8 +921,6 @@ mail_shell_view_update_actions (EShellView *shell_view)
folder_tree_and_message_list_agree =
(g_strcmp0 (uri, folder_uri) == 0);
- account = e_get_account_by_source_url (uri);
-
/* FIXME This belongs in a GroupWise plugin. */
account_is_groupwise =
(g_strrstr (uri, "groupwise://") != NULL) &&