diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-08-18 10:20:50 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-08-18 10:27:46 +0800 |
commit | ef929f26973d8d5712a6962c804b1dc0b439d0a9 (patch) | |
tree | 2dec2dc401b93010d354bbf4c62bc5bf38bc8562 /modules/mail | |
parent | dd57574c0427b4571c1daac42b6ffa636a8c80c1 (diff) | |
download | gsoc2013-evolution-ef929f26973d8d5712a6962c804b1dc0b439d0a9.tar.gz gsoc2013-evolution-ef929f26973d8d5712a6962c804b1dc0b439d0a9.tar.zst gsoc2013-evolution-ef929f26973d8d5712a6962c804b1dc0b439d0a9.zip |
e_mail_store_foreach(): Take an EMailSession parameter.
Use camel_session_list_services() instead of the internal store table.
The store table serves little purpose nowadays and could probably be
removed. I'll look into that later.
Diffstat (limited to 'modules/mail')
-rw-r--r-- | modules/mail/e-mail-shell-backend.c | 7 | ||||
-rw-r--r-- | modules/mail/e-mail-shell-view-actions.c | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/modules/mail/e-mail-shell-backend.c b/modules/mail/e-mail-shell-backend.c index 76762c308c..93500279e7 100644 --- a/modules/mail/e-mail-shell-backend.c +++ b/modules/mail/e-mail-shell-backend.c @@ -234,6 +234,8 @@ mail_shell_backend_mail_sync (EMailShellBackend *mail_shell_backend) { EShell *shell; EShellBackend *shell_backend; + EMailBackend *backend; + EMailSession *session; shell_backend = E_SHELL_BACKEND (mail_shell_backend); shell = e_shell_backend_get_shell (shell_backend); @@ -246,8 +248,11 @@ mail_shell_backend_mail_sync (EMailShellBackend *mail_shell_backend) if (mail_shell_backend->priv->mail_sync_in_progress) goto exit; + backend = E_MAIL_BACKEND (mail_shell_backend); + session = e_mail_backend_get_session (backend); + e_mail_store_foreach ( - (GFunc) mail_shell_backend_sync_store_cb, + session, (GFunc) mail_shell_backend_sync_store_cb, mail_shell_backend); exit: diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c index 3569d1b144..5db80011aa 100644 --- a/modules/mail/e-mail-shell-view-actions.c +++ b/modules/mail/e-mail-shell-view-actions.c @@ -218,14 +218,18 @@ action_mail_download_cb (GtkAction *action, EMailShellContent *mail_shell_content; EMailView *mail_view; EMailReader *reader; + EMailBackend *backend; + EMailSession *session; mail_shell_content = mail_shell_view->priv->mail_shell_content; mail_view = e_mail_shell_content_get_mail_view (mail_shell_content); reader = E_MAIL_READER (mail_view); + backend = e_mail_reader_get_backend (reader); + session = e_mail_backend_get_session (backend); e_mail_store_foreach ( - (GFunc) action_mail_download_foreach_cb, reader); + session, (GFunc) action_mail_download_foreach_cb, reader); } static void |