From f4d9a26f99304d0fed83289bb6411e3a14a01ef7 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 12 Feb 2009 19:01:33 +0000 Subject: Make MailSession available through EShellSettings so composer can use it. svn path=/branches/kill-bonobo/; revision=37257 --- mail/e-mail-shell-module-settings.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'mail/e-mail-shell-module-settings.c') diff --git a/mail/e-mail-shell-module-settings.c b/mail/e-mail-shell-module-settings.c index e3d77e6a82..e657296de3 100644 --- a/mail/e-mail-shell-module-settings.c +++ b/mail/e-mail-shell-module-settings.c @@ -26,6 +26,7 @@ #include "e-util/e-signature-list.h" #include "mail/e-mail-label-list-store.h" +#include "mail/mail-session.h" void e_mail_shell_module_init_settings (EShell *shell) @@ -53,6 +54,17 @@ e_mail_shell_module_init_settings (EShell *shell) shell_settings, "mail-label-list-store", object); g_object_unref (object); + e_shell_settings_install_property ( + g_param_spec_pointer ( + "mail-session", + NULL, + NULL, + G_PARAM_READWRITE)); + + camel_object_ref (session); + e_shell_settings_set_pointer ( + shell_settings, "mail-session", session); + /*** Mail Preferences ***/ e_shell_settings_install_property ( -- cgit