aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-browser.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-browser.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-browser.c')
-rw-r--r--mail/e-mail-browser.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c
index 900ba63052..6e0a18ff21 100644
--- a/mail/e-mail-browser.c
+++ b/mail/e-mail-browser.c
@@ -742,13 +742,19 @@ mail_browser_submit_alert (EAlertSink *alert_sink,
}
static GtkActionGroup *
-mail_browser_get_action_group (EMailReader *reader)
+mail_browser_get_action_group (EMailReader *reader,
+ EMailReaderActionGroup group)
{
EMailBrowserPrivate *priv;
priv = E_MAIL_BROWSER (reader)->priv;
- return priv->action_group;
+ switch (group) {
+ case E_MAIL_READER_ACTION_GROUP_STANDARD:
+ return priv->action_group;
+ default:
+ g_return_val_if_reached (NULL);
+ }
}
static EAlertSink *