aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-backend.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-16 03:05:08 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-18 00:08:46 +0800
commit060bb076625dba3aad86485014d49a348cf13671 (patch)
treedd32838d9ead76aa5c9794aaa7881c84bf153e96 /mail/e-mail-backend.c
parentc36aa6b7498ac73a77624533516b010f5701f08b (diff)
downloadgsoc2013-evolution-060bb076625dba3aad86485014d49a348cf13671.tar
gsoc2013-evolution-060bb076625dba3aad86485014d49a348cf13671.tar.gz
gsoc2013-evolution-060bb076625dba3aad86485014d49a348cf13671.tar.bz2
gsoc2013-evolution-060bb076625dba3aad86485014d49a348cf13671.tar.lz
gsoc2013-evolution-060bb076625dba3aad86485014d49a348cf13671.tar.xz
gsoc2013-evolution-060bb076625dba3aad86485014d49a348cf13671.tar.zst
gsoc2013-evolution-060bb076625dba3aad86485014d49a348cf13671.zip
mail_folder_cache_get_folder_info_flags: Change parameters.
Take a CamelStore and folder name instead of a CamelFolder. CamelStore and folder name can easily be obtained from either a folder URI or a CamelFolder instance, and the function is more efficient with separate parameters.
Diffstat (limited to 'mail/e-mail-backend.c')
-rw-r--r--mail/e-mail-backend.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index c2952daffd..b7fb84735e 100644
--- a/mail/e-mail-backend.c
+++ b/mail/e-mail-backend.c
@@ -673,24 +673,14 @@ mail_backend_folder_changed_cb (MailFolderCache *folder_cache,
EMEvent *event = em_event_peek ();
EMEventTargetFolder *target;
EMFolderTreeModel *model;
- CamelFolder *folder;
gchar *folder_uri;
gint folder_type;
CamelFolderInfoFlags flags = 0;
folder_uri = e_mail_folder_uri_build (store, folder_name);
- folder = mail_folder_cache_ref_folder (
- folder_cache, store, folder_name);
- if (folder != NULL) {
- /* XXX Need to rethink this API. Why should we
- * need the CamelFolder instance just to get
- * folder flags? The flags are more readily
- * available than the CamelFolder instance. */
- mail_folder_cache_get_folder_info_flags (
- folder_cache, folder, &flags);
- g_object_unref (folder);
- }
+ mail_folder_cache_get_folder_info_flags (
+ folder_cache, store, folder_name, &flags);
target = em_event_target_new_folder (
event, store, folder_uri, new_messages,