aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-backend.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-08-18 09:21:22 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-14 20:08:51 +0800
commit9b59286ea42a3db8b5d76f4e388b8691340b034c (patch)
treeeb333208a2d7e3cb8deb2f461fb90bbddbb10eb6 /mail/e-mail-backend.c
parent87e18345094a649f2d6940d1ebd12b79454d7a94 (diff)
downloadgsoc2013-evolution-9b59286ea42a3db8b5d76f4e388b8691340b034c.tar.gz
gsoc2013-evolution-9b59286ea42a3db8b5d76f4e388b8691340b034c.tar.zst
gsoc2013-evolution-9b59286ea42a3db8b5d76f4e388b8691340b034c.zip
Use new CamelService:display-name property.
Simplify, simplify...
Diffstat (limited to 'mail/e-mail-backend.c')
-rw-r--r--mail/e-mail-backend.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index 17007f2c72..479b92ed59 100644
--- a/mail/e-mail-backend.c
+++ b/mail/e-mail-backend.c
@@ -107,7 +107,6 @@ mail_backend_store_operation_done_cb (CamelStore *store,
/* Helper for mail_backend_prepare_for_offline_cb() */
static void
mail_store_prepare_for_offline_cb (CamelService *service,
- gpointer unused,
EActivity *activity)
{
/* FIXME Not passing a GCancellable. */
@@ -141,13 +140,12 @@ mail_backend_prepare_for_offline_cb (EShell *shell,
}
e_mail_store_foreach (
- (GHFunc) mail_store_prepare_for_offline_cb, activity);
+ (GFunc) mail_store_prepare_for_offline_cb, activity);
}
/* Helper for mail_backend_prepare_for_online_cb() */
static void
mail_store_prepare_for_online_cb (CamelService *service,
- gpointer unused,
EActivity *activity)
{
/* FIXME Not passing a GCancellable. */
@@ -168,13 +166,12 @@ mail_backend_prepare_for_online_cb (EShell *shell,
camel_session_set_online (CAMEL_SESSION (session), TRUE);
e_mail_store_foreach (
- (GHFunc) mail_store_prepare_for_online_cb, activity);
+ (GFunc) mail_store_prepare_for_online_cb, activity);
}
/* Helper for mail_backend_prepare_for_quit_cb() */
static void
mail_backend_delete_junk (CamelStore *store,
- gpointer unused,
EMailBackend *backend)
{
CamelFolder *folder;
@@ -206,7 +203,6 @@ mail_backend_delete_junk (CamelStore *store,
/* Helper for mail_backend_prepare_for_quit_cb() */
static void
mail_backend_final_sync (CamelStore *store,
- gpointer unused,
gpointer user_data)
{
struct {
@@ -268,12 +264,12 @@ mail_backend_prepare_for_quit_cb (EShell *shell,
if (delete_junk)
e_mail_store_foreach (
- (GHFunc) mail_backend_delete_junk, backend);
+ (GFunc) mail_backend_delete_junk, backend);
sync_data.activity = activity;
sync_data.empty_trash = empty_trash;
- e_mail_store_foreach ((GHFunc) mail_backend_final_sync, &sync_data);
+ e_mail_store_foreach ((GFunc) mail_backend_final_sync, &sync_data);
/* Now we poll until all activities are actually cancelled or finished.
* Reffing the activity delays quitting; the reference count