aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-02-09 01:26:15 +0800
committerMilan Crha <mcrha@redhat.com>2013-02-09 01:26:49 +0800
commit9c6a7673b80268d96eb007b3273b26d5422f48a1 (patch)
tree4b08cba38bd19383791ec99766d3f6c7e1c9e8cf /libemail-engine
parenteb9e9279262050117e75547bc5ce200ac92c24fb (diff)
downloadgsoc2013-evolution-9c6a7673b80268d96eb007b3273b26d5422f48a1.tar
gsoc2013-evolution-9c6a7673b80268d96eb007b3273b26d5422f48a1.tar.gz
gsoc2013-evolution-9c6a7673b80268d96eb007b3273b26d5422f48a1.tar.bz2
gsoc2013-evolution-9c6a7673b80268d96eb007b3273b26d5422f48a1.tar.lz
gsoc2013-evolution-9c6a7673b80268d96eb007b3273b26d5422f48a1.tar.xz
gsoc2013-evolution-9c6a7673b80268d96eb007b3273b26d5422f48a1.tar.zst
gsoc2013-evolution-9c6a7673b80268d96eb007b3273b26d5422f48a1.zip
Add comments around g_idle_add() changes
Diffstat (limited to 'libemail-engine')
-rw-r--r--libemail-engine/e-mail-utils.c1
-rw-r--r--libemail-engine/mail-folder-cache.c1
-rw-r--r--libemail-engine/mail-mt.c3
3 files changed, 5 insertions, 0 deletions
diff --git a/libemail-engine/e-mail-utils.c b/libemail-engine/e-mail-utils.c
index 17e61365db..e7f414a7d9 100644
--- a/libemail-engine/e-mail-utils.c
+++ b/libemail-engine/e-mail-utils.c
@@ -824,6 +824,7 @@ free_mail_cache_thread (gpointer user_data)
e_cancellable_mutex_unlock (&photos_cache_lock);
}
+ /* schedule with priority higher than gtk+ uses for animations (check docs for G_PRIORITY_HIGH_IDLE) */
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 f1af370b1e..89c6a5246a 100644
--- a/libemail-engine/mail-folder-cache.c
+++ b/libemail-engine/mail-folder-cache.c
@@ -304,6 +304,7 @@ flush_updates (MailFolderCache *cache)
if (g_queue_is_empty (&cache->priv->updates))
return;
+ /* schedule with priority higher than gtk+ uses for animations (check docs for G_PRIORITY_HIGH_IDLE) */
cache->priv->update_id = g_idle_add_full (G_PRIORITY_DEFAULT,
(GSourceFunc) flush_updates_idle_cb, cache, NULL);
}
diff --git a/libemail-engine/mail-mt.c b/libemail-engine/mail-mt.c
index 3ff5242344..ef443d43e0 100644
--- a/libemail-engine/mail-mt.c
+++ b/libemail-engine/mail-mt.c
@@ -216,6 +216,7 @@ mail_msg_unref (gpointer msg)
/* Destroy the message from an idle callback
* so we know we're in the main loop thread. */
+ /* schedule with priority higher than gtk+ uses for animations (check docs for G_PRIORITY_HIGH_IDLE) */
g_idle_add_full (G_PRIORITY_DEFAULT, (GSourceFunc) mail_msg_free, mail_msg, NULL);
}
}
@@ -429,6 +430,7 @@ mail_msg_proxy (MailMsg *msg)
G_LOCK (idle_source_id);
if (idle_source_id == 0)
+ /* schedule with priority higher than gtk+ uses for animations (check docs for G_PRIORITY_HIGH_IDLE) */
idle_source_id = g_idle_add_full (G_PRIORITY_DEFAULT,
(GSourceFunc) mail_msg_idle_cb, NULL, NULL);
G_UNLOCK (idle_source_id);
@@ -484,6 +486,7 @@ mail_msg_main_loop_push (gpointer msg)
G_LOCK (idle_source_id);
if (idle_source_id == 0)
+ /* schedule with priority higher than gtk+ uses for animations (check docs for G_PRIORITY_HIGH_IDLE) */
idle_source_id = g_idle_add_full (G_PRIORITY_DEFAULT,
(GSourceFunc) mail_msg_idle_cb, NULL, NULL);
G_UNLOCK (idle_source_id);