From 18593a0fb99e04854f66459972b2c53fca601cda Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Fri, 2 Mar 2012 15:40:34 +0530 Subject: Move vfolders to libemail-engine and rest as mail-vfolder-ui. It all works and the daemon can now start the vfolder storage without bothering much with the UI. --- mail/e-mail-backend.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'mail/e-mail-backend.c') diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c index 75866f3d3c..cc095a39af 100644 --- a/mail/e-mail-backend.c +++ b/mail/e-mail-backend.c @@ -55,7 +55,7 @@ #include #include #include -#include +#include #define E_MAIL_BACKEND_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE \ @@ -919,6 +919,19 @@ mail_mt_alert_error (GCancellable *cancellable, message, NULL); } +static EAlertSink * +mail_mt_get_alert_sink () +{ + EShell *shell; + EShellBackend *shell_backend; + + shell = e_shell_get_default (); + shell_backend = e_shell_get_backend_by_name ( + shell, "mail"); + + return e_mail_backend_get_alert_sink (E_MAIL_BACKEND(shell_backend)); +} + static void mail_backend_constructed (GObject *object) { @@ -1024,7 +1037,8 @@ mail_backend_constructed (GObject *object) mail_mt_free_activity, mail_mt_complete_acitivity, mail_mt_cancel_activity, - mail_mt_alert_error); + mail_mt_alert_error, + mail_mt_get_alert_sink); /* Chain up to parent's constructed() method. */ G_OBJECT_CLASS (e_mail_backend_parent_class)->constructed (object); -- cgit v1.2.3