diff options
author | Michel Dänzer <michel@daenzer.net> | 2013-02-08 19:36:38 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2013-02-09 01:26:48 +0800 |
commit | eb9e9279262050117e75547bc5ce200ac92c24fb (patch) | |
tree | b3210c08b0920832face1fce796c0d3731d97a7d /libemail-engine | |
parent | 1214f942cc9fd61a3caa2a13d00f0c0a46197cb2 (diff) | |
download | gsoc2013-evolution-eb9e9279262050117e75547bc5ce200ac92c24fb.tar.gz gsoc2013-evolution-eb9e9279262050117e75547bc5ce200ac92c24fb.tar.zst gsoc2013-evolution-eb9e9279262050117e75547bc5ce200ac92c24fb.zip |
Bug #683867 - Schedule actions with higher idle priority
Diffstat (limited to 'libemail-engine')
-rw-r--r-- | libemail-engine/e-mail-utils.c | 2 | ||||
-rw-r--r-- | libemail-engine/mail-folder-cache.c | 4 | ||||
-rw-r--r-- | libemail-engine/mail-mt.c | 10 |
3 files changed, 8 insertions, 8 deletions
diff --git a/libemail-engine/e-mail-utils.c b/libemail-engine/e-mail-utils.c index 5e9a6db853..17e61365db 100644 --- a/libemail-engine/e-mail-utils.c +++ b/libemail-engine/e-mail-utils.c @@ -824,7 +824,7 @@ free_mail_cache_thread (gpointer user_data) e_cancellable_mutex_unlock (&photos_cache_lock); } - g_idle_add (free_mail_cache_idle, user_data); + g_idle_add_full (G_PRIORITY_HIGH, free_mail_cache_idle, user_data, NULL); return NULL; } diff --git a/libemail-engine/mail-folder-cache.c b/libemail-engine/mail-folder-cache.c index 35e620862e..f1af370b1e 100644 --- a/libemail-engine/mail-folder-cache.c +++ b/libemail-engine/mail-folder-cache.c @@ -304,8 +304,8 @@ flush_updates (MailFolderCache *cache) if (g_queue_is_empty (&cache->priv->updates)) return; - cache->priv->update_id = g_idle_add ( - (GSourceFunc) flush_updates_idle_cb, cache); + cache->priv->update_id = g_idle_add_full (G_PRIORITY_DEFAULT, + (GSourceFunc) flush_updates_idle_cb, cache, NULL); } /* This is how unread counts work (and don't work): diff --git a/libemail-engine/mail-mt.c b/libemail-engine/mail-mt.c index baf1476f82..3ff5242344 100644 --- a/libemail-engine/mail-mt.c +++ b/libemail-engine/mail-mt.c @@ -216,7 +216,7 @@ mail_msg_unref (gpointer msg) /* Destroy the message from an idle callback * so we know we're in the main loop thread. */ - g_idle_add ((GSourceFunc) mail_msg_free, mail_msg); + g_idle_add_full (G_PRIORITY_DEFAULT, (GSourceFunc) mail_msg_free, mail_msg, NULL); } } @@ -429,8 +429,8 @@ mail_msg_proxy (MailMsg *msg) G_LOCK (idle_source_id); if (idle_source_id == 0) - idle_source_id = g_idle_add ( - (GSourceFunc) mail_msg_idle_cb, NULL); + idle_source_id = g_idle_add_full (G_PRIORITY_DEFAULT, + (GSourceFunc) mail_msg_idle_cb, NULL, NULL); G_UNLOCK (idle_source_id); } @@ -484,8 +484,8 @@ mail_msg_main_loop_push (gpointer msg) G_LOCK (idle_source_id); if (idle_source_id == 0) - idle_source_id = g_idle_add ( - (GSourceFunc) mail_msg_idle_cb, NULL); + idle_source_id = g_idle_add_full (G_PRIORITY_DEFAULT, + (GSourceFunc) mail_msg_idle_cb, NULL, NULL); G_UNLOCK (idle_source_id); } |