aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-backend.c')
-rw-r--r--mail/e-mail-backend.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index 0640c7ff53..dee2027f08 100644
--- a/mail/e-mail-backend.c
+++ b/mail/e-mail-backend.c
@@ -776,13 +776,19 @@ mail_backend_constructed (GObject *object)
camel_provider_init ();
priv->session = e_mail_session_new ();
- folder_cache = e_mail_session_get_folder_cache (priv->session);
g_object_bind_property (
shell, "online",
priv->session, "online",
G_BINDING_SYNC_CREATE);
+ /* Propagate "activity-added" signals from
+ * the mail session to the shell backend. */
+ g_signal_connect_swapped (
+ priv->session, "activity-added",
+ G_CALLBACK (e_shell_backend_add_activity),
+ shell_backend);
+
g_signal_connect (
priv->session, "job-started",
G_CALLBACK (mail_backend_job_started_cb),
@@ -817,6 +823,8 @@ mail_backend_constructed (GObject *object)
G_CALLBACK (mail_backend_quit_requested_cb),
shell_backend);
+ folder_cache = e_mail_session_get_folder_cache (priv->session);
+
g_signal_connect (
folder_cache, "folder-deleted",
G_CALLBACK (mail_backend_folder_deleted_cb),