diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-03 21:40:49 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-03 21:42:06 +0800 |
commit | c3b983d6e12e218b6f908cf263e7e08570332d6a (patch) | |
tree | 560030902b043570bfaf391f40dd40b185ccec9b /mail/em-utils.c | |
parent | b9f932b1b84349e80e8383d925a00a75a3b7fe29 (diff) | |
download | gsoc2013-evolution-c3b983d6e12e218b6f908cf263e7e08570332d6a.tar.gz gsoc2013-evolution-c3b983d6e12e218b6f908cf263e7e08570332d6a.tar.zst gsoc2013-evolution-c3b983d6e12e218b6f908cf263e7e08570332d6a.zip |
Drop 'folder_uri' param from em_utils_folder_is_outbox().
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r-- | mail/em-utils.c | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 5c8082d6e2..61b5baabc1 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -1173,37 +1173,23 @@ em_utils_folder_is_sent (CamelFolder *folder) /** * em_utils_folder_is_outbox: - * @folder: folder - * @uri: uri for this folder, if known + * @folder: a #CamelFolder * - * Decides if @folder is an Outbox folder + * Decides if @folder is an Outbox folder. * * Returns %TRUE if this is an Outbox folder or %FALSE otherwise. **/ gboolean -em_utils_folder_is_outbox (CamelFolder *folder, const gchar *uri) +em_utils_folder_is_outbox (CamelFolder *folder) { CamelFolder *local_outbox_folder; - CamelSession *session; - CamelStore *store; - const gchar *local_outbox_folder_uri; + + g_return_val_if_fail (CAMEL_IS_FOLDER (folder), FALSE); local_outbox_folder = e_mail_local_get_folder (E_MAIL_LOCAL_FOLDER_OUTBOX); - local_outbox_folder_uri = - e_mail_local_get_folder_uri (E_MAIL_LOCAL_FOLDER_OUTBOX); - - if (folder == local_outbox_folder) - return TRUE; - - if (uri == NULL) - return FALSE; - - store = camel_folder_get_parent_store (local_outbox_folder); - session = camel_service_get_session (CAMEL_SERVICE (store)); - return e_mail_folder_uri_equal ( - session, local_outbox_folder_uri, uri); + return (folder == local_outbox_folder); } /* ********************************************************************** */ |