diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-13 03:01:33 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-13 03:01:33 +0800 |
commit | f4d9a26f99304d0fed83289bb6411e3a14a01ef7 (patch) | |
tree | 0671bd5d51968fd9c49e927053947123bf1234c8 /composer | |
parent | 6bffa31112ca78585f3528bbd2ad52b84231e3f4 (diff) | |
download | gsoc2013-evolution-f4d9a26f99304d0fed83289bb6411e3a14a01ef7.tar.gz gsoc2013-evolution-f4d9a26f99304d0fed83289bb6411e3a14a01ef7.tar.zst gsoc2013-evolution-f4d9a26f99304d0fed83289bb6411e3a14a01ef7.zip |
Make MailSession available through EShellSettings so composer can use it.
svn path=/branches/kill-bonobo/; revision=37257
Diffstat (limited to 'composer')
-rw-r--r-- | composer/e-msg-composer.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 0f91a34907..288a9c6868 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -3631,15 +3631,18 @@ e_msg_composer_new_redirect (CamelMimeMessage *message, CamelSession * e_msg_composer_get_session (EMsgComposer *composer) { - EShellModule *shell_module; - CamelSession *session; EShell *shell; + EShellSettings *shell_settings; + CamelSession *session; + + /* FIXME EMsgComposer should own a reference to EShell. */ g_return_val_if_fail (E_IS_MSG_COMPOSER (composer), NULL); shell = e_shell_get_default (); - shell_module = e_shell_get_module_by_name (shell, "mail"); - session = g_object_get_data (G_OBJECT (shell_module), "session"); + shell_settings = e_shell_get_shell_settings (shell); + + session = e_shell_settings_get_pointer (shell_settings, "mail-session"); g_return_val_if_fail (CAMEL_IS_SESSION (session), NULL); return session; |