aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-03 21:40:49 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:06 +0800
commitfc1034551ed2daf3040851e818b2798c3c58f4f9 (patch)
tree90696864875650f5fe3759aff3eb19c6181d78a6 /mail/em-utils.c
parentbbf5ce3869dbdf1c277ee9d10b07e91fd775502b (diff)
downloadgsoc2013-evolution-fc1034551ed2daf3040851e818b2798c3c58f4f9.tar.gz
gsoc2013-evolution-fc1034551ed2daf3040851e818b2798c3c58f4f9.tar.zst
gsoc2013-evolution-fc1034551ed2daf3040851e818b2798c3c58f4f9.zip
Drop 'folder_uri' param from em_utils_folder_is_outbox().
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c26
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);
}
/* ********************************************************************** */