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 /modules/mail/e-mail-shell-view.c | |
parent | ba0032efa85d65135926790761bdcf04a2ac849e (diff) | |
download | gsoc2013-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 'modules/mail/e-mail-shell-view.c')
-rw-r--r-- | modules/mail/e-mail-shell-view.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c index 0e9a66c2ad..6b6b530b90 100644 --- a/modules/mail/e-mail-shell-view.c +++ b/modules/mail/e-mail-shell-view.c @@ -843,6 +843,7 @@ mail_shell_view_update_actions (EShellView *shell_view) gboolean folder_is_trash; gboolean folder_has_unread_rec = FALSE; gboolean folder_tree_and_message_list_agree = TRUE; + gboolean store_supports_subscriptions; gboolean have_enabled_account; /* Chain up to parent's update_actions() method. */ @@ -878,6 +879,8 @@ mail_shell_view_update_actions (EShellView *shell_view) (state & E_MAIL_SIDEBAR_FOLDER_IS_STORE); folder_is_trash = (state & E_MAIL_SIDEBAR_FOLDER_IS_TRASH); + store_supports_subscriptions = + (state & E_MAIL_SIDEBAR_STORE_SUPPORTS_SUBSCRIPTIONS); uri = em_folder_tree_get_selected_uri (folder_tree); if (uri != NULL) { @@ -985,6 +988,10 @@ mail_shell_view_update_actions (EShellView *shell_view) sensitive = folder_has_unread_rec && !folder_is_store; gtk_action_set_sensitive (action, sensitive); + action = ACTION (MAIL_MANAGE_SUBSCRIPTIONS); + sensitive = folder_is_store && store_supports_subscriptions; + gtk_action_set_sensitive (action, sensitive); + action = ACTION (MAIL_TOOLS_SUBSCRIPTIONS); sensitive = have_enabled_account; gtk_action_set_sensitive (action, sensitive); |