[evolution] Bug 602803 - New Contact enabled for read-only address books
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Bug 602803 - New Contact enabled for read-only address books
- Date: Wed, 25 Nov 2009 13:12:22 +0000 (UTC)
commit d3497934dbf0aa93e08fe971240953b15c616cf7
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Nov 25 08:10:20 2009 -0500
Bug 602803 - New Contact enabled for read-only address books
modules/addressbook/e-book-shell-view.c | 8 ++++++++
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 663f2a1..6c4c430 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]