diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-02-09 03:21:42 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-02-09 03:21:42 +0800 |
commit | 60d1c3054aa60d02c763538d6b1f16d9d6ab6ade (patch) | |
tree | 755a59156908bd215c03f20f59b0ef770564c805 /libemail-engine/mail-folder-cache.c | |
parent | 9c6a7673b80268d96eb007b3273b26d5422f48a1 (diff) | |
download | gsoc2013-evolution-60d1c3054aa60d02c763538d6b1f16d9d6ab6ade.tar gsoc2013-evolution-60d1c3054aa60d02c763538d6b1f16d9d6ab6ade.tar.gz gsoc2013-evolution-60d1c3054aa60d02c763538d6b1f16d9d6ab6ade.tar.bz2 gsoc2013-evolution-60d1c3054aa60d02c763538d6b1f16d9d6ab6ade.tar.lz gsoc2013-evolution-60d1c3054aa60d02c763538d6b1f16d9d6ab6ade.tar.xz gsoc2013-evolution-60d1c3054aa60d02c763538d6b1f16d9d6ab6ade.tar.zst gsoc2013-evolution-60d1c3054aa60d02c763538d6b1f16d9d6ab6ade.zip |
G_PRIORITY_HIGH_IDLE is sufficient to beat GTK+ redraws.
GTK+ uses (G_PRIORITY_HIGH_IDLE + 20) for redrawing operations, which is
actually a slightly lower priority than G_PRIORITY_HIGH_IDLE. Therefore
for our purpose, G_PRIORITY_HIGH_IDLE is sufficient.
Diffstat (limited to 'libemail-engine/mail-folder-cache.c')
-rw-r--r-- | libemail-engine/mail-folder-cache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libemail-engine/mail-folder-cache.c b/libemail-engine/mail-folder-cache.c index 89c6a5246a..ad8a5b1764 100644 --- a/libemail-engine/mail-folder-cache.c +++ b/libemail-engine/mail-folder-cache.c @@ -304,8 +304,9 @@ 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, + /* Prioritize ahead of GTK+ redraws. */ + cache->priv->update_id = g_idle_add_full ( + G_PRIORITY_HIGH_IDLE, (GSourceFunc) flush_updates_idle_cb, cache, NULL); } |