diff options
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); |