aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-shell-view-actions.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-08 09:12:02 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-08 09:12:02 +0800
commit03fe4bdcbc8a2e644339bbfcd12843da1f766375 (patch)
treeb2f3a6f3ed4053aec88a1568cc1936d00dbb9f9f /mail/e-mail-shell-view-actions.c
parent16e2beab9e4d412399f495f6165d27da80cb3675 (diff)
downloadgsoc2013-evolution-03fe4bdcbc8a2e644339bbfcd12843da1f766375.tar
gsoc2013-evolution-03fe4bdcbc8a2e644339bbfcd12843da1f766375.tar.gz
gsoc2013-evolution-03fe4bdcbc8a2e644339bbfcd12843da1f766375.tar.bz2
gsoc2013-evolution-03fe4bdcbc8a2e644339bbfcd12843da1f766375.tar.lz
gsoc2013-evolution-03fe4bdcbc8a2e644339bbfcd12843da1f766375.tar.xz
gsoc2013-evolution-03fe4bdcbc8a2e644339bbfcd12843da1f766375.tar.zst
gsoc2013-evolution-03fe4bdcbc8a2e644339bbfcd12843da1f766375.zip
Fix most of the compiler warnings in mail.
Diffstat (limited to 'mail/e-mail-shell-view-actions.c')
-rw-r--r--mail/e-mail-shell-view-actions.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/mail/e-mail-shell-view-actions.c b/mail/e-mail-shell-view-actions.c
index 2491e41a46..33d497c9ae 100644
--- a/mail/e-mail-shell-view-actions.c
+++ b/mail/e-mail-shell-view-actions.c
@@ -45,18 +45,16 @@ static void
action_mail_account_disable_cb (GtkAction *action,
EMailShellView *mail_shell_view)
{
+ EMailShellBackend *mail_shell_backend;
EMailShellSidebar *mail_shell_sidebar;
- EShellBackend *shell_backend;
- EShellView *shell_view;
EMFolderTree *folder_tree;
EAccountList *account_list;
EAccount *account;
gchar *folder_uri;
- shell_view = E_SHELL_VIEW (mail_shell_view);
- shell_backend = e_shell_view_get_shell_backend (shell_view);
-
+ mail_shell_backend = mail_shell_view->priv->mail_shell_backend;
mail_shell_sidebar = mail_shell_view->priv->mail_shell_sidebar;
+
folder_tree = e_mail_shell_sidebar_get_folder_tree (mail_shell_sidebar);
folder_uri = em_folder_tree_get_selected_uri (folder_tree);
g_return_if_fail (folder_uri != NULL);
@@ -70,7 +68,8 @@ action_mail_account_disable_cb (GtkAction *action,
account->enabled = !account->enabled;
e_account_list_change (account_list, account);
- e_mail_shell_backend_remove_store_by_uri (shell_backend, folder_uri);
+ e_mail_shell_backend_remove_store_by_uri (
+ mail_shell_backend, folder_uri);
if (account->parent_uid != NULL)
e_account_list_remove (account_list, account);
@@ -100,14 +99,13 @@ static void
action_mail_download_cb (GtkAction *action,
EMailShellView *mail_shell_view)
{
- EShellView *shell_view;
- EShellBackend *shell_backend;
+ EMailShellBackend *mail_shell_backend;
- shell_view = E_SHELL_VIEW (mail_shell_view);
- shell_backend = e_shell_view_get_shell_backend (shell_view);
+ mail_shell_backend = mail_shell_view->priv->mail_shell_backend;
e_mail_shell_backend_stores_foreach (
- shell_backend, (GHFunc) action_mail_download_foreach_cb, NULL);
+ mail_shell_backend, (GHFunc)
+ action_mail_download_foreach_cb, NULL);
}
static void