aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-parser.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-02-09 03:21:42 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-02-09 03:21:42 +0800
commit60d1c3054aa60d02c763538d6b1f16d9d6ab6ade (patch)
tree755a59156908bd215c03f20f59b0ef770564c805 /em-format/e-mail-parser.c
parent9c6a7673b80268d96eb007b3273b26d5422f48a1 (diff)
downloadgsoc2013-evolution-60d1c3054aa60d02c763538d6b1f16d9d6ab6ade.tar.gz
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 'em-format/e-mail-parser.c')
-rw-r--r--em-format/e-mail-parser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/em-format/e-mail-parser.c b/em-format/e-mail-parser.c
index e569560092..294b058766 100644
--- a/em-format/e-mail-parser.c
+++ b/em-format/e-mail-parser.c
@@ -723,8 +723,9 @@ e_mail_parser_wrap_as_attachment (EMailParser *parser,
}
/* e_attachment_load_async must be called from main thread */
- /* schedule with priority higher than gtk+ uses for animations (check docs for G_PRIORITY_HIGH_IDLE) */
- g_idle_add_full (G_PRIORITY_HIGH,
+ /* Prioritize ahead of GTK+ redraws. */
+ g_idle_add_full (
+ G_PRIORITY_HIGH_IDLE,
(GSourceFunc) load_attachment_idle,
g_object_ref (empa->attachment),
NULL);
imit -msse/-msse2 to files that actually use intrinsicsdanfe2016-01-131-7/+4 * graphics/lensfun: bump PORTREVISIONmmoll2015-11-291-0/+1 * graphics/lensfun: fix build on armmmoll2015-11-281-0/+8