From be217ae4c574b82a8ecbc7dbb506aca36f6e56fa Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 1 Jul 2013 15:53:06 +0200 Subject: Contacts view: Add 'Refresh' into books context menu Done as part of bug #700894 --- modules/addressbook/e-book-shell-view.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/addressbook/e-book-shell-view.c') 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 && -- cgit v1.2.3