aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-shell-backend.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-30 02:04:54 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-10-30 03:22:35 +0800
commitbc0d5d40ed39c92dcdf62ae891a2e99c25237d74 (patch)
treea07763eeaa20602bd4c0620b2fe67c443c52d29c /modules/mail/e-mail-shell-backend.c
parentd3e0f96c73dde49acde92f6347b9e362d85e94aa (diff)
downloadgsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.gz
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.bz2
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.lz
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.xz
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.zst
gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.zip
Bug 710797 - Name all the timeouts added with g_timeout_add()
Diffstat (limited to 'modules/mail/e-mail-shell-backend.c')
-rw-r--r--modules/mail/e-mail-shell-backend.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/mail/e-mail-shell-backend.c b/modules/mail/e-mail-shell-backend.c
index 1ec00a3f55..e71f1497d4 100644
--- a/modules/mail/e-mail-shell-backend.c
+++ b/modules/mail/e-mail-shell-backend.c
@@ -266,14 +266,17 @@ mail_shell_backend_sync_store_done_cb (CamelStore *store,
}
static gboolean
-mail_shell_backend_mail_sync (EMailShellBackend *mail_shell_backend)
+mail_shell_backend_mail_sync (gpointer user_data)
{
+ EMailShellBackend *mail_shell_backend;
EShell *shell;
EShellBackend *shell_backend;
EMailBackend *backend;
EMailSession *session;
GList *list, *link;
+ mail_shell_backend = E_MAIL_SHELL_BACKEND (user_data);
+
shell_backend = E_SHELL_BACKEND (mail_shell_backend);
shell = e_shell_backend_get_shell (shell_backend);
@@ -632,11 +635,12 @@ mail_shell_backend_start (EShellBackend *shell_backend)
g_error_free (error);
}
- if (g_getenv ("CAMEL_FLUSH_CHANGES") != NULL)
- priv->mail_sync_source_id = g_timeout_add_seconds (
+ if (g_getenv ("CAMEL_FLUSH_CHANGES") != NULL) {
+ priv->mail_sync_source_id = e_named_timeout_add_seconds (
mail_config_get_sync_timeout (),
- (GSourceFunc) mail_shell_backend_mail_sync,
+ mail_shell_backend_mail_sync,
shell_backend);
+ }
}
static gboolean