diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-21 03:29:00 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-21 07:05:55 +0800 |
commit | 7333f12087eb0b0271ff272c6643909a7803510b (patch) | |
tree | 17f41d1b9500c783eee63763e4a4e779b265912d /mail/e-mail-notebook-view.c | |
parent | f15ef02a7f3dda6b2f8058efab8407946d1d6a60 (diff) | |
download | gsoc2013-evolution-7333f12087eb0b0271ff272c6643909a7803510b.tar.gz gsoc2013-evolution-7333f12087eb0b0271ff272c6643909a7803510b.tar.zst gsoc2013-evolution-7333f12087eb0b0271ff272c6643909a7803510b.zip |
EMailReader: Support multiple action groups.
Use an enum type to request different action groups. For now we just
have E_MAIL_READER_ACTION_GROUP_STANDARD. EMailReader implementations
should map the enum value to an appropriate GtkActionGroup.
Diffstat (limited to 'mail/e-mail-notebook-view.c')
-rw-r--r-- | mail/e-mail-notebook-view.c | 16 |
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 * |