aboutsummaryrefslogtreecommitdiffstats
path: root/modules/addressbook/e-book-shell-view.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-07-01 21:53:06 +0800
committerMilan Crha <mcrha@redhat.com>2013-07-01 21:53:06 +0800
commitbe217ae4c574b82a8ecbc7dbb506aca36f6e56fa (patch)
tree96d4039d8990188fc25417898de3400669d8a4f1 /modules/addressbook/e-book-shell-view.c
parent870bd532b542e49fa80f799c919d80b1728b6967 (diff)
downloadgsoc2013-evolution-be217ae4c574b82a8ecbc7dbb506aca36f6e56fa.tar
gsoc2013-evolution-be217ae4c574b82a8ecbc7dbb506aca36f6e56fa.tar.gz
gsoc2013-evolution-be217ae4c574b82a8ecbc7dbb506aca36f6e56fa.tar.bz2
gsoc2013-evolution-be217ae4c574b82a8ecbc7dbb506aca36f6e56fa.tar.lz
gsoc2013-evolution-be217ae4c574b82a8ecbc7dbb506aca36f6e56fa.tar.xz
gsoc2013-evolution-be217ae4c574b82a8ecbc7dbb506aca36f6e56fa.tar.zst
gsoc2013-evolution-be217ae4c574b82a8ecbc7dbb506aca36f6e56fa.zip
Contacts view: Add 'Refresh' into books context menu
Done as part of bug #700894
Diffstat (limited to 'modules/addressbook/e-book-shell-view.c')
-rw-r--r--modules/addressbook/e-book-shell-view.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/addressbook/e-book-shell-view.c b/modules/addressbook/e-book-shell-view.c
index f2c06bbb8d..1f76cad705 100644
--- a/modules/addressbook/e-book-shell-view.c
+++ b/modules/addressbook/e-book-shell-view.c
@@ -205,6 +205,7 @@ book_shell_view_update_actions (EShellView *shell_view)
gboolean primary_source_is_removable;
gboolean primary_source_is_remote_deletable;
gboolean primary_source_in_collection;
+ gboolean refresh_supported;
gboolean single_contact_selected;
gboolean selection_is_contact_list;
gboolean selection_has_email;
@@ -245,6 +246,8 @@ book_shell_view_update_actions (EShellView *shell_view)
(state & E_BOOK_SHELL_SIDEBAR_PRIMARY_SOURCE_IS_REMOTE_DELETABLE);
primary_source_in_collection =
(state & E_BOOK_SHELL_SIDEBAR_PRIMARY_SOURCE_IN_COLLECTION);
+ refresh_supported =
+ (state & E_BOOK_SHELL_SIDEBAR_SOURCE_SUPPORTS_REFRESH);
any_contacts_selected =
(single_contact_selected || multiple_contacts_selected);
@@ -271,6 +274,10 @@ book_shell_view_update_actions (EShellView *shell_view)
sensitive = primary_source_is_writable;
gtk_action_set_sensitive (action, sensitive);
+ action = ACTION (ADDRESS_BOOK_REFRESH);
+ sensitive = refresh_supported;
+ gtk_action_set_sensitive (action, sensitive);
+
action = ACTION (ADDRESS_BOOK_RENAME);
sensitive =
primary_source_is_writable &&