aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-paned-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-21 03:29:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-21 07:05:55 +0800
commit7333f12087eb0b0271ff272c6643909a7803510b (patch)
tree17f41d1b9500c783eee63763e4a4e779b265912d /mail/e-mail-paned-view.c
parentf15ef02a7f3dda6b2f8058efab8407946d1d6a60 (diff)
downloadgsoc2013-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-paned-view.c')
-rw-r--r--mail/e-mail-paned-view.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/mail/e-mail-paned-view.c b/mail/e-mail-paned-view.c
index 8c79a824df..d95fca16c2 100644
--- a/mail/e-mail-paned-view.c
+++ b/mail/e-mail-paned-view.c
@@ -366,17 +366,27 @@ mail_paned_view_dispose (GObject *object)
}
static GtkActionGroup *
-mail_paned_view_get_action_group (EMailReader *reader)
+mail_paned_view_get_action_group (EMailReader *reader,
+ EMailReaderActionGroup group)
{
EMailView *view;
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 *