aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r--mail/mail-session.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c
index 9f557b05ea..e5ed58c593 100644
--- a/mail/mail-session.c
+++ b/mail/mail-session.c
@@ -741,7 +741,7 @@ register_timeout (CamelSession *session, guint32 interval, CamelTimeoutCallback
MAIL_SESSION_UNLOCK(session, lock);
camel_object_ref((CamelObject *)ms);
- mail_async_event_emit(ms->async, (CamelObjectEventHookFunc)main_register_timeout, (CamelObject *)session, (void *)ret, NULL);
+ mail_async_event_emit(ms->async, MAIL_ASYNC_GUI, (MailAsyncFunc)main_register_timeout, (CamelObject *)session, (void *)ret, NULL);
return ret;
}
@@ -783,7 +783,8 @@ remove_timeout (CamelSession *session, guint handle)
if (remove) {
camel_object_ref((CamelObject *)ms);
- mail_async_event_emit(ms->async, (CamelObjectEventHookFunc)main_remove_timeout, (CamelObject *)session, (void *)handle, NULL);
+ mail_async_event_emit(ms->async, MAIL_ASYNC_GUI,
+ (MailAsyncFunc)main_remove_timeout, (CamelObject *)session, (void *)handle, NULL);
} else
g_warning("Removing a timeout i dont know about (or twice): %d", handle);