aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-shell-view-actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mail/e-mail-shell-view-actions.c')
-rw-r--r--modules/mail/e-mail-shell-view-actions.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index b521dc3712..4b4a1d8024 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -1029,6 +1029,20 @@ static GtkActionEntry mail_entries[] = {
NULL, /* XXX Add a tooltip! */
G_CALLBACK (action_mail_label_none_cb) },
+ /* This is the same as "mail-tools-subscriptions" but only
+ * appears in the sidebar context menu when right-clicking
+ * on a store that supports folder subscriptions. No need
+ * for a special callback because Folder->Subscriptions...
+ * already tries to open the "Folder Subscriptions" dialog
+ * according to the highlighted item in the sidebar, which
+ * is exactly the behavior we want here. */
+ { "mail-manage-subscriptions",
+ NULL,
+ N_("_Manage Subscriptions"),
+ NULL,
+ N_("Subscribe or unsubscribe to folders on remote servers"),
+ G_CALLBACK (action_mail_tools_subscriptions_cb) },
+
{ "mail-smart-backward",
NULL,
NULL, /* No menu item; key press only */
@@ -1153,7 +1167,11 @@ static EPopupActionEntry mail_popup_entries[] = {
{ "mail-popup-folder-unsubscribe",
NULL,
- "mail-folder-unsubscribe" }
+ "mail-folder-unsubscribe" },
+
+ { "mail-popup-manage-subscriptions",
+ NULL,
+ "mail-manage-subscriptions" }
};
static GtkToggleActionEntry mail_toggle_entries[] = {