aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-browser.c')
-rw-r--r--mail/e-mail-browser.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c
index ad736236cf..0bc40f13ab 100644
--- a/mail/e-mail-browser.c
+++ b/mail/e-mail-browser.c
@@ -27,6 +27,7 @@
#include "e-util/e-util.h"
#include "e-util/gconf-bridge.h"
+#include "shell/e-shell.h"
#include "mail/e-mail-reader.h"
#include "mail/e-mail-reader-utils.h"
@@ -321,6 +322,8 @@ mail_browser_constructed (GObject *object)
{
EMailBrowserPrivate *priv;
EMailReader *reader;
+ EShellModule *shell_module;
+ EShell *shell;
GtkAccelGroup *accel_group;
GtkActionGroup *action_group;
GtkUIManager *ui_manager;
@@ -337,6 +340,10 @@ mail_browser_constructed (GObject *object)
e_mail_reader_init (reader);
+ shell_module = e_mail_reader_get_shell_module (reader);
+ shell = e_shell_module_get_shell (shell_module);
+ e_shell_watch_window (shell, GTK_WINDOW (object));
+
action_group = priv->action_group;
gtk_action_group_set_translation_domain (action_group, domain);
gtk_action_group_add_actions (