diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-03 21:39:10 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-03 21:39:10 +0800 |
commit | a69cbcd79aff01585620a12b378686d86c219ce9 (patch) | |
tree | fc677e4db7792e655c32ba16c2da44ab334ee2ee /mail | |
parent | ba0032efa85d65135926790761bdcf04a2ac849e (diff) | |
download | gsoc2013-evolution-a69cbcd79aff01585620a12b378686d86c219ce9.tar gsoc2013-evolution-a69cbcd79aff01585620a12b378686d86c219ce9.tar.gz gsoc2013-evolution-a69cbcd79aff01585620a12b378686d86c219ce9.tar.bz2 gsoc2013-evolution-a69cbcd79aff01585620a12b378686d86c219ce9.tar.lz gsoc2013-evolution-a69cbcd79aff01585620a12b378686d86c219ce9.tar.xz gsoc2013-evolution-a69cbcd79aff01585620a12b378686d86c219ce9.tar.zst gsoc2013-evolution-a69cbcd79aff01585620a12b378686d86c219ce9.zip |
Bug 510020 - Add "Manage Subscriptions" to store context menus
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-sidebar.c | 2 | ||||
-rw-r--r-- | mail/e-mail-sidebar.h | 13 |
2 files changed, 9 insertions, 6 deletions
diff --git a/mail/e-mail-sidebar.c b/mail/e-mail-sidebar.c index 5ed65f963b..596773423d 100644 --- a/mail/e-mail-sidebar.c +++ b/mail/e-mail-sidebar.c @@ -370,6 +370,8 @@ mail_sidebar_check_state (EMailSidebar *sidebar) state |= E_MAIL_SIDEBAR_FOLDER_IS_STORE; if (is_trash) state |= E_MAIL_SIDEBAR_FOLDER_IS_TRASH; + if (camel_store_supports_subscriptions (store)) + state |= E_MAIL_SIDEBAR_STORE_SUPPORTS_SUBSCRIPTIONS; g_free (full_name); g_free (uri); diff --git a/mail/e-mail-sidebar.h b/mail/e-mail-sidebar.h index f08c05d2fe..b57ff76348 100644 --- a/mail/e-mail-sidebar.h +++ b/mail/e-mail-sidebar.h @@ -51,12 +51,13 @@ typedef struct _EMailSidebarPrivate EMailSidebarPrivate; /* Flags describing the selected folder. */ enum { - E_MAIL_SIDEBAR_FOLDER_ALLOWS_CHILDREN = 1 << 0, - E_MAIL_SIDEBAR_FOLDER_CAN_DELETE = 1 << 1, - E_MAIL_SIDEBAR_FOLDER_IS_JUNK = 1 << 2, - E_MAIL_SIDEBAR_FOLDER_IS_OUTBOX = 1 << 3, - E_MAIL_SIDEBAR_FOLDER_IS_STORE = 1 << 4, - E_MAIL_SIDEBAR_FOLDER_IS_TRASH = 1 << 5 + E_MAIL_SIDEBAR_FOLDER_ALLOWS_CHILDREN = 1 << 0, + E_MAIL_SIDEBAR_FOLDER_CAN_DELETE = 1 << 1, + E_MAIL_SIDEBAR_FOLDER_IS_JUNK = 1 << 2, + E_MAIL_SIDEBAR_FOLDER_IS_OUTBOX = 1 << 3, + E_MAIL_SIDEBAR_FOLDER_IS_STORE = 1 << 4, + E_MAIL_SIDEBAR_FOLDER_IS_TRASH = 1 << 5, + E_MAIL_SIDEBAR_STORE_SUPPORTS_SUBSCRIPTIONS = 1 << 6 }; struct _EMailSidebar { |