aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-03 21:39:10 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-03 21:39:10 +0800
commita69cbcd79aff01585620a12b378686d86c219ce9 (patch)
treefc677e4db7792e655c32ba16c2da44ab334ee2ee /mail
parentba0032efa85d65135926790761bdcf04a2ac849e (diff)
downloadgsoc2013-evolution-a69cbcd79aff01585620a12b378686d86c219ce9.tar.gz
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.c2
-rw-r--r--mail/e-mail-sidebar.h13
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 {