aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-store.c
diff options
context:
space:
mode:
authorJonathon Jongsma <jonathon@quotidian.org>2009-12-10 04:29:49 +0800
committerJonathon Jongsma <jonathon@quotidian.org>2009-12-16 04:16:08 +0800
commit65705e4f55560889ac6de638aa8f3245c06349c0 (patch)
tree0c87f3c1efab739717a77f914a33085ca67fa2ab /mail/e-mail-store.c
parentb8efcdb8d6fc81c4b942bde4acd83f83b15791de (diff)
downloadgsoc2013-evolution-65705e4f55560889ac6de638aa8f3245c06349c0.tar
gsoc2013-evolution-65705e4f55560889ac6de638aa8f3245c06349c0.tar.gz
gsoc2013-evolution-65705e4f55560889ac6de638aa8f3245c06349c0.tar.bz2
gsoc2013-evolution-65705e4f55560889ac6de638aa8f3245c06349c0.tar.lz
gsoc2013-evolution-65705e4f55560889ac6de638aa8f3245c06349c0.tar.xz
gsoc2013-evolution-65705e4f55560889ac6de638aa8f3245c06349c0.tar.zst
gsoc2013-evolution-65705e4f55560889ac6de638aa8f3245c06349c0.zip
Make the mail folder cache a proper GObject
mail-folder-cache previously was a bit of a pseudo object (sort of a singleton) that operated on some file static data. This commit re-factors things so that it is a proper class named MailFolderCache. At the moment, this doesn't gain us much, but in the future, it will allow us to add signals, etc so that we can de-couple a lot of the interdependencies in here. This is essentially a pre-requisite to splitting up a lot of the mail backend stuff. https://bugzilla.gnome.org/show_bug.cgi?id=604627
Diffstat (limited to 'mail/e-mail-store.c')
-rw-r--r--mail/e-mail-store.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mail/e-mail-store.c b/mail/e-mail-store.c
index 749459d462..2cc03ad23c 100644
--- a/mail/e-mail-store.c
+++ b/mail/e-mail-store.c
@@ -147,9 +147,9 @@ mail_store_note_store_cb (CamelStore *store,
if (!store_info->removed) {
/* This keeps message counters up-to-date. */
if (store_info->vtrash != NULL)
- mail_note_folder (store_info->vtrash);
+ mail_folder_cache_note_folder (mail_folder_cache_get_default (), store_info->vtrash);
if (store_info->vjunk != NULL)
- mail_note_folder (store_info->vjunk);
+ mail_folder_cache_note_folder (mail_folder_cache_get_default (), store_info->vjunk);
}
store_info_unref (store_info);
@@ -177,7 +177,7 @@ mail_store_add (CamelStore *store,
em_folder_tree_model_add_store (
default_model, store, store_info->display_name);
- mail_note_store (
+ mail_folder_cache_note_store (mail_folder_cache_get_default (),
store, NULL,
mail_store_note_store_cb,
store_info_ref (store_info));
@@ -194,7 +194,7 @@ mail_store_add_local_done_cb (CamelStore *store,
for (ii = 0; ii < E_MAIL_NUM_LOCAL_FOLDERS; ii++) {
folder = e_mail_local_get_folder (ii);
if (folder != NULL)
- mail_note_folder (folder);
+ mail_folder_cache_note_folder (mail_folder_cache_get_default (), folder);
}
}
@@ -367,7 +367,7 @@ e_mail_store_remove (CamelStore *store)
camel_object_ref (store);
g_hash_table_remove (store_table, store);
- mail_note_store_remove (store);
+ mail_folder_cache_note_store_remove (mail_folder_cache_get_default (), store);
default_model = em_folder_tree_model_get_default ();
em_folder_tree_model_remove_store (default_model, store);