diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-20 12:33:23 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-20 12:33:23 +0800 |
commit | 5a1c48696363e3f3c7ffe11bdffdcad6557f811a (patch) | |
tree | 816b61003397929415eeaa75a5cc81aec1a6ab91 /mail/e-mail-shell-module.c | |
parent | 22d41a51fae2d18315887b05000cf7facc36e887 (diff) | |
download | gsoc2013-evolution-5a1c48696363e3f3c7ffe11bdffdcad6557f811a.tar gsoc2013-evolution-5a1c48696363e3f3c7ffe11bdffdcad6557f811a.tar.gz gsoc2013-evolution-5a1c48696363e3f3c7ffe11bdffdcad6557f811a.tar.bz2 gsoc2013-evolution-5a1c48696363e3f3c7ffe11bdffdcad6557f811a.tar.lz gsoc2013-evolution-5a1c48696363e3f3c7ffe11bdffdcad6557f811a.tar.xz gsoc2013-evolution-5a1c48696363e3f3c7ffe11bdffdcad6557f811a.tar.zst gsoc2013-evolution-5a1c48696363e3f3c7ffe11bdffdcad6557f811a.zip |
Untangle some circular dependencies with the composer.
Addressbook and calendar no longer depend on the mailer.
svn path=/branches/kill-bonobo/; revision=37107
Diffstat (limited to 'mail/e-mail-shell-module.c')
-rw-r--r-- | mail/e-mail-shell-module.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mail/e-mail-shell-module.c b/mail/e-mail-shell-module.c index 96d7a5ebbd..214c09bc28 100644 --- a/mail/e-mail-shell-module.c +++ b/mail/e-mail-shell-module.c @@ -554,6 +554,18 @@ exit: } static void +mail_shell_module_event_new_editor_cb (EShell *shell, + GtkWindow *editor, + EShellModule *shell_module) +{ + if (!E_IS_MSG_COMPOSER (editor)) + return; + + /* Integrate the new composer into the mail module. */ + em_configure_new_composer (E_MSG_COMPOSER (editor)); +} + +static void mail_shell_module_notify_online_mode_cb (EShell *shell, GParamSpec *pspec, EShellModule *shell_module) @@ -831,6 +843,11 @@ e_shell_module_init (GTypeModule *type_module) folder_tree_model = em_folder_tree_model_new (shell_module); g_signal_connect ( + shell, "event::new-editor", + G_CALLBACK (mail_shell_module_event_new_editor_cb), + shell_module); + + g_signal_connect ( shell, "notify::online-mode", G_CALLBACK (mail_shell_module_notify_online_mode_cb), shell_module); |