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-reader.h | |
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-reader.h')
-rw-r--r-- | mail/e-mail-reader.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mail/e-mail-reader.h b/mail/e-mail-reader.h index 0e874603c4..ea6732a055 100644 --- a/mail/e-mail-reader.h +++ b/mail/e-mail-reader.h @@ -60,6 +60,11 @@ G_BEGIN_DECLS typedef struct _EMailReader EMailReader; typedef struct _EMailReaderInterface EMailReaderInterface; +typedef enum { + E_MAIL_READER_ACTION_GROUP_STANDARD, + E_MAIL_READER_NUM_ACTION_GROUPS +} EMailReaderActionGroup; + enum { E_MAIL_READER_HAVE_ENABLED_ACCOUNT = 1 << 0, E_MAIL_READER_SELECTION_SINGLE = 1 << 1, @@ -85,7 +90,8 @@ struct _EMailReaderInterface { GTypeInterface parent_interface; GtkActionGroup * - (*get_action_group) (EMailReader *reader); + (*get_action_group) (EMailReader *reader, + EMailReaderActionGroup group); EAlertSink * (*get_alert_sink) (EMailReader *reader); EMailBackend * (*get_backend) (EMailReader *reader); EMFormatHTML * (*get_formatter) (EMailReader *reader); @@ -121,7 +127,8 @@ void e_mail_reader_update_actions (EMailReader *reader, GtkAction * e_mail_reader_get_action (EMailReader *reader, const gchar *action_name); GtkActionGroup * - e_mail_reader_get_action_group (EMailReader *reader); + e_mail_reader_get_action_group (EMailReader *reader, + EMailReaderActionGroup group); EAlertSink * e_mail_reader_get_alert_sink (EMailReader *reader); EMailBackend * e_mail_reader_get_backend (EMailReader *reader); EMFormatHTML * e_mail_reader_get_formatter (EMailReader *reader); |