diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-04-18 01:13:55 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-04-18 01:13:55 +0800 |
commit | ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4 (patch) | |
tree | a832dbe0abedd11d440112ef44ade568bb76685a /mail/e-mail-store.c | |
parent | 40cb250a71e0264f75cd1d02e3f77af5fb550c09 (diff) | |
download | gsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.tar.gz gsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.tar.zst gsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.zip |
Adapt to sealed up CamelService.
Diffstat (limited to 'mail/e-mail-store.c')
-rw-r--r-- | mail/e-mail-store.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/e-mail-store.c b/mail/e-mail-store.c index e5607ef1a3..c5b6be32b4 100644 --- a/mail/e-mail-store.c +++ b/mail/e-mail-store.c @@ -169,15 +169,17 @@ mail_store_add (EMailSession *session, { EMFolderTreeModel *default_model; MailFolderCache *folder_cache; + CamelProvider *provider; StoreInfo *store_info; g_return_if_fail (store_table != NULL); g_return_if_fail (store != NULL); g_return_if_fail (CAMEL_IS_STORE (store)); + provider = camel_service_get_provider (CAMEL_SERVICE (store)); + g_return_if_fail ( - (CAMEL_SERVICE (store)->provider->flags & - CAMEL_PROVIDER_IS_STORAGE) != 0); + (provider->flags & CAMEL_PROVIDER_IS_STORAGE) != 0); default_model = em_folder_tree_model_get_default (); folder_cache = e_mail_session_get_folder_cache (session); |