aboutsummaryrefslogtreecommitdiffstats
path: root/mail
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 /mail
parenteb9e9279262050117e75547bc5ce200ac92c24fb (diff)
downloadgsoc2013-evolution-9c6a7673b80268d96eb007b3273b26d5422f48a1.tar.gz
gsoc2013-evolution-9c6a7673b80268d96eb007b3273b26d5422f48a1.tar.zst
gsoc2013-evolution-9c6a7673b80268d96eb007b3273b26d5422f48a1.zip
Add comments around g_idle_add() changes
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-browser.c1
-rw-r--r--mail/e-mail-display.c1
-rw-r--r--mail/e-mail-ui-session.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c
index 15f61c50a5..e708f29bbc 100644
--- a/mail/e-mail-browser.c
+++ b/mail/e-mail-browser.c
@@ -302,6 +302,7 @@ mail_browser_message_list_built_cb (EMailBrowser *browser,
g_return_if_fail (IS_MESSAGE_LIST (message_list));
if (!message_list_count (message_list))
+ /* schedule with priority higher than gtk+ uses for animations (check docs for G_PRIORITY_HIGH_IDLE) */
g_idle_add_full (G_PRIORITY_DEFAULT, close_on_idle_cb, browser, NULL);
}
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c
index d1e27f8fa3..26415f2599 100644
--- a/mail/e-mail-display.c
+++ b/mail/e-mail-display.c
@@ -1925,6 +1925,7 @@ e_mail_display_reload (EMailDisplay *display)
return;
/* Schedule reloading if neccessary */
+ /* schedule with priority higher than gtk+ uses for animations (check docs for G_PRIORITY_HIGH_IDLE) */
display->priv->scheduled_reload =
g_idle_add_full (G_PRIORITY_DEFAULT, (GSourceFunc) do_reload_display, display, NULL);
}
diff --git a/mail/e-mail-ui-session.c b/mail/e-mail-ui-session.c
index 62defbc914..6324a290ba 100644
--- a/mail/e-mail-ui-session.c
+++ b/mail/e-mail-ui-session.c
@@ -596,6 +596,7 @@ mail_ui_session_add_service (CamelSession *session,
context->session = g_object_ref (session);
context->service = g_object_ref (service);
+ /* 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_ui_session_add_service_cb,