aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-notebook-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-notebook-view.c')
-rw-r--r--mail/e-mail-notebook-view.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/mail/e-mail-notebook-view.c b/mail/e-mail-notebook-view.c
index 16e2fe308b..d72016d608 100644
--- a/mail/e-mail-notebook-view.c
+++ b/mail/e-mail-notebook-view.c
@@ -776,17 +776,27 @@ mail_notebook_view_set_preview_visible (EMailView *view,
}
static GtkActionGroup *
-mail_notebook_view_get_action_group (EMailReader *reader)
+mail_notebook_view_get_action_group (EMailReader *reader,
+ EMailReaderActionGroup group)
{
EMailView *view;
- EShellWindow *shell_window;
EShellView *shell_view;
+ EShellWindow *shell_window;
+ const gchar *group_name;
view = E_MAIL_VIEW (reader);
shell_view = e_mail_view_get_shell_view (view);
shell_window = e_shell_view_get_shell_window (shell_view);
- return E_SHELL_WINDOW_ACTION_GROUP_MAIL (shell_window);
+ switch (group) {
+ case E_MAIL_READER_ACTION_GROUP_STANDARD:
+ group_name = "mail";
+ break;
+ default:
+ g_return_val_if_reached (NULL);
+ }
+
+ return e_shell_window_get_action_group (shell_window, group_name);
}
static EAlertSink *