diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-06-13 23:19:56 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-06-13 23:19:56 +0800 |
commit | a36294e7c73d610e73448d010dfe532cd5851958 (patch) | |
tree | fb019bcdeb0ca6234d1c73b9a40f709ca1fe4a1b /libemail-engine | |
parent | 7530345eb762ad9a9e0969365a1bc8bc2eb1de8b (diff) | |
download | gsoc2013-evolution-a36294e7c73d610e73448d010dfe532cd5851958.tar.gz gsoc2013-evolution-a36294e7c73d610e73448d010dfe532cd5851958.tar.zst gsoc2013-evolution-a36294e7c73d610e73448d010dfe532cd5851958.zip |
Bug 677995 - Asks password for disabled mail account
Remove mail_folder_cache_service_added() and rely instead on
mail_folder_cache_service_enabled()/disabled(). Despite the function
names the folder cache doesn't actually care about enabled status, it
simply maintains a set of CamelStores to monitor. We should refactor
the folder cache API to better reflect that.
EMailAccountStore always immediately follows a "service-added" signal
emission with either a "service-enabled" or "service-disabled" emission,
which will add or remove the service from the folder cache.
Diffstat (limited to 'libemail-engine')
-rw-r--r-- | libemail-engine/mail-folder-cache.c | 11 | ||||
-rw-r--r-- | libemail-engine/mail-folder-cache.h | 2 |
2 files changed, 0 insertions, 13 deletions
diff --git a/libemail-engine/mail-folder-cache.c b/libemail-engine/mail-folder-cache.c index 6ce4e2d1ca..2c832f501b 100644 --- a/libemail-engine/mail-folder-cache.c +++ b/libemail-engine/mail-folder-cache.c @@ -1784,17 +1784,6 @@ mail_folder_cache_get_remote_folder_uris (MailFolderCache *self, } void -mail_folder_cache_service_added (MailFolderCache *cache, - CamelService *service) -{ - g_return_if_fail (MAIL_IS_FOLDER_CACHE (cache)); - g_return_if_fail (CAMEL_IS_SERVICE (service)); - - mail_folder_cache_note_store ( - cache, CAMEL_STORE (service), NULL, NULL, NULL); -} - -void mail_folder_cache_service_removed (MailFolderCache *cache, CamelService *service) { diff --git a/libemail-engine/mail-folder-cache.h b/libemail-engine/mail-folder-cache.h index 5f464a6bd0..cc3fc898bc 100644 --- a/libemail-engine/mail-folder-cache.h +++ b/libemail-engine/mail-folder-cache.h @@ -138,8 +138,6 @@ void mail_folder_cache_get_local_folder_uris void mail_folder_cache_get_remote_folder_uris (MailFolderCache *cache, GQueue *out_queue); -void mail_folder_cache_service_added (MailFolderCache *cache, - CamelService *service); void mail_folder_cache_service_removed (MailFolderCache *cache, CamelService *service); |