aboutsummaryrefslogtreecommitdiffstats
path: root/modules
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 /modules
parent9c6a7673b80268d96eb007b3273b26d5422f48a1 (diff)
downloadgsoc2013-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 'modules')
-rw-r--r--modules/itip-formatter/itip-view.c6
-rw-r--r--modules/settings/e-settings-mail-reader.c6
2 files changed, 7 insertions, 5 deletions
diff --git a/modules/itip-formatter/itip-view.c b/modules/itip-formatter/itip-view.c
index c1712ab1e8..d282549e81 100644
--- a/modules/itip-formatter/itip-view.c
+++ b/modules/itip-formatter/itip-view.c
@@ -5705,8 +5705,10 @@ view_response_cb (ItipView *view,
send_item (pitip, view);
break;
case ITIP_VIEW_RESPONSE_OPEN:
- /* schedule with priority higher than gtk+ uses for animations (check docs for G_PRIORITY_HIGH_IDLE) */
- g_idle_add_full (G_PRIORITY_DEFAULT, idle_open_cb, pitip, NULL);
+ /* Prioritize ahead of GTK+ redraws. */
+ g_idle_add_full (
+ G_PRIORITY_HIGH_IDLE,
+ idle_open_cb, pitip, NULL);
return;
default:
break;
diff --git a/modules/settings/e-settings-mail-reader.c b/modules/settings/e-settings-mail-reader.c
index 6c88e8f64f..17ab57b3b8 100644
--- a/modules/settings/e-settings-mail-reader.c
+++ b/modules/settings/e-settings-mail-reader.c
@@ -84,10 +84,10 @@ static void
settings_mail_reader_constructed (GObject *object)
{
/* Bind properties to settings from an idle callback so the
- * EMailReader interface has a chance to be initialized first. */
- /* schedule with priority higher than gtk+ uses for animations (check docs for G_PRIORITY_HIGH_IDLE) */
+ * EMailReader interface has a chance to be initialized first.
+ * Prioritize ahead of GTK+ redraws. */
g_idle_add_full (
- G_PRIORITY_DEFAULT,
+ G_PRIORITY_HIGH_IDLE,
(GSourceFunc) settings_mail_reader_idle_cb,
g_object_ref (object),
(GDestroyNotify) g_object_unref);