diff options
Diffstat (limited to 'modules/addressbook/e-book-shell-view.c')
-rw-r--r-- | modules/addressbook/e-book-shell-view.c | 7 |
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 && |