diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-16 03:05:08 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-18 00:08:46 +0800 |
commit | 060bb076625dba3aad86485014d49a348cf13671 (patch) | |
tree | dd32838d9ead76aa5c9794aaa7881c84bf153e96 /mail/em-folder-properties.c | |
parent | c36aa6b7498ac73a77624533516b010f5701f08b (diff) | |
download | gsoc2013-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/em-folder-properties.c')
-rw-r--r-- | mail/em-folder-properties.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mail/em-folder-properties.c b/mail/em-folder-properties.c index 526dc89068..d50888fea9 100644 --- a/mail/em-folder-properties.c +++ b/mail/em-folder-properties.c @@ -193,18 +193,24 @@ emfp_get_folder_item (EConfig *ec, CamelStore *store; CamelSession *session; CamelFolderInfoFlags fi_flags = 0; + const gchar *folder_name; MailFolderCache *folder_cache; + gboolean have_flags; store = camel_folder_get_parent_store (context->folder); + folder_name = camel_folder_get_full_name (context->folder); + session = camel_service_ref_session (CAMEL_SERVICE (store)); folder_cache = e_mail_session_get_folder_cache ( E_MAIL_SESSION (session)); + have_flags = mail_folder_cache_get_folder_info_flags ( + folder_cache, store, folder_name, &fi_flags); + can_apply_filters = !CAMEL_IS_VEE_FOLDER (context->folder) && - mail_folder_cache_get_folder_info_flags ( - folder_cache, context->folder, &fi_flags) && + have_flags && (fi_flags & CAMEL_FOLDER_TYPE_MASK) != CAMEL_FOLDER_TYPE_INBOX; g_object_unref (session); |