aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-11-25 21:10:20 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-11-25 21:12:14 +0800
commitd3497934dbf0aa93e08fe971240953b15c616cf7 (patch)
tree4a16d330146b952c69f691179985598815b951d2 /modules
parentdcaa53ca64b42dc7ad4f613ce10b186e4b4b9255 (diff)
downloadgsoc2013-evolution-d3497934dbf0aa93e08fe971240953b15c616cf7.tar
gsoc2013-evolution-d3497934dbf0aa93e08fe971240953b15c616cf7.tar.gz
gsoc2013-evolution-d3497934dbf0aa93e08fe971240953b15c616cf7.tar.bz2
gsoc2013-evolution-d3497934dbf0aa93e08fe971240953b15c616cf7.tar.lz
gsoc2013-evolution-d3497934dbf0aa93e08fe971240953b15c616cf7.tar.xz
gsoc2013-evolution-d3497934dbf0aa93e08fe971240953b15c616cf7.tar.zst
gsoc2013-evolution-d3497934dbf0aa93e08fe971240953b15c616cf7.zip
BugĀ 602803 - New Contact enabled for read-only address books
Diffstat (limited to 'modules')
-rw-r--r--modules/addressbook/e-book-shell-view.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/addressbook/e-book-shell-view.c b/modules/addressbook/e-book-shell-view.c
index 663f2a109e..6c4c4303d1 100644
--- a/modules/addressbook/e-book-shell-view.c
+++ b/modules/addressbook/e-book-shell-view.c
@@ -342,6 +342,14 @@ book_shell_view_update_actions (EShellView *shell_view)
sensitive = source_is_editable && any_contacts_selected;
gtk_action_set_sensitive (action, sensitive);
+ action = ACTION (CONTACT_NEW);
+ sensitive = source_is_editable;
+ gtk_action_set_sensitive (action, sensitive);
+
+ action = ACTION (CONTACT_NEW_LIST);
+ sensitive = source_is_editable;
+ gtk_action_set_sensitive (action, sensitive);
+
action = ACTION (CONTACT_OPEN);
sensitive = any_contacts_selected;
gtk_action_set_sensitive (action, sensitive);