aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-08-16 05:36:43 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-14 20:08:50 +0800
commit08e62014fe4a11e3c9b4c4c46339684af36ef5ef (patch)
treef4ec2dd6001cc5f711c33d1e0da08f529f0381a7 /modules/mail
parentc34f5d0503572d1942671d9047ee56d25e3d40ff (diff)
downloadgsoc2013-evolution-08e62014fe4a11e3c9b4c4c46339684af36ef5ef.tar.gz
gsoc2013-evolution-08e62014fe4a11e3c9b4c4c46339684af36ef5ef.tar.zst
gsoc2013-evolution-08e62014fe4a11e3c9b4c4c46339684af36ef5ef.zip
Adapt to new CamelSubscribable interface.
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/e-mail-shell-view.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c
index 263a2838db..73041d7971 100644
--- a/modules/mail/e-mail-shell-view.c
+++ b/modules/mail/e-mail-shell-view.c
@@ -845,8 +845,8 @@ 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 any_store_supports_subscriptions = FALSE;
+ gboolean store_is_subscribable;
+ gboolean any_store_is_subscribable = FALSE;
/* Chain up to parent's update_actions() method. */
E_SHELL_VIEW_CLASS (parent_class)->update_actions (shell_view);
@@ -879,8 +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);
+ store_is_subscribable =
+ (state & E_MAIL_SIDEBAR_STORE_IS_SUBSCRIBABLE);
uri = em_folder_tree_get_selected_uri (folder_tree);
account = em_folder_tree_get_selected_account (folder_tree);
@@ -934,8 +934,8 @@ mail_shell_view_update_actions (EShellView *shell_view)
for (link = list; link != NULL; link = g_list_next (link)) {
CamelStore *store = CAMEL_STORE (link->data);
- if (camel_store_supports_subscriptions (store)) {
- any_store_supports_subscriptions = TRUE;
+ if (CAMEL_IS_SUBSCRIBABLE (store)) {
+ any_store_is_subscribable = TRUE;
break;
}
}
@@ -1002,7 +1002,7 @@ mail_shell_view_update_actions (EShellView *shell_view)
action = ACTION (MAIL_FOLDER_UNSUBSCRIBE);
sensitive =
- store_supports_subscriptions &&
+ store_is_subscribable &&
!folder_is_store && folder_can_be_deleted;
gtk_action_set_sensitive (action, sensitive);
@@ -1011,11 +1011,11 @@ mail_shell_view_update_actions (EShellView *shell_view)
gtk_action_set_sensitive (action, sensitive);
action = ACTION (MAIL_MANAGE_SUBSCRIPTIONS);
- sensitive = folder_is_store && store_supports_subscriptions;
+ sensitive = folder_is_store && store_is_subscribable;
gtk_action_set_sensitive (action, sensitive);
action = ACTION (MAIL_TOOLS_SUBSCRIPTIONS);
- sensitive = any_store_supports_subscriptions;
+ sensitive = any_store_is_subscribable;
gtk_action_set_sensitive (action, sensitive);
e_mail_shell_view_update_popup_labels (mail_shell_view);