From 65705e4f55560889ac6de638aa8f3245c06349c0 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Wed, 9 Dec 2009 14:29:49 -0600 Subject: 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 --- mail/em-folder-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/em-folder-utils.c') diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c index cf805f3b27..2838e829bd 100644 --- a/mail/em-folder-utils.c +++ b/mail/em-folder-utils.c @@ -448,7 +448,7 @@ em_folder_utils_delete_folder (CamelFolder *folder) return; } - if (mail_folder_cache_get_folder_info_flags (folder, &flags) && (flags & CAMEL_FOLDER_SYSTEM)) + if (mail_folder_cache_get_folder_info_flags (mail_folder_cache_get_default (), folder, &flags) && (flags & CAMEL_FOLDER_SYSTEM)) { e_alert_run_dialog_for_args (parent,"mail:no-delete-special-folder", folder->name, NULL); return; -- cgit v1.2.3