diff options
author | Srinivasa Ragavan <sragavan@gnome.org> | 2012-03-02 18:10:34 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-03-03 22:02:34 +0800 |
commit | 18593a0fb99e04854f66459972b2c53fca601cda (patch) | |
tree | 3ab1b17fa1b079e1cecc9ff0055bde40f55e588c /mail/e-mail-backend.c | |
parent | f2ae5f830dc506e084731111008a8e90c093e97e (diff) | |
download | gsoc2013-evolution-18593a0fb99e04854f66459972b2c53fca601cda.tar gsoc2013-evolution-18593a0fb99e04854f66459972b2c53fca601cda.tar.gz gsoc2013-evolution-18593a0fb99e04854f66459972b2c53fca601cda.tar.bz2 gsoc2013-evolution-18593a0fb99e04854f66459972b2c53fca601cda.tar.lz gsoc2013-evolution-18593a0fb99e04854f66459972b2c53fca601cda.tar.xz gsoc2013-evolution-18593a0fb99e04854f66459972b2c53fca601cda.tar.zst gsoc2013-evolution-18593a0fb99e04854f66459972b2c53fca601cda.zip |
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.
Diffstat (limited to 'mail/e-mail-backend.c')
-rw-r--r-- | mail/e-mail-backend.c | 18 |
1 files changed, 16 insertions, 2 deletions
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 <mail/em-utils.h> #include <mail/mail-autofilter.h> #include <mail/mail-send-recv.h> -#include <mail/mail-vfolder.h> +#include <mail/mail-vfolder-ui.h> #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); |