From d7cc0a890b132037a2e5293c153d17f172480135 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Mon, 10 Jan 2005 07:31:06 +0000 Subject: When spawning an editor, set the initial editability from the target book, 2005-01-10 Hans Petter Jansson * gui/widgets/e-minicard.c (e_minicard_activate_editor): When spawning an editor, set the initial editability from the target book, not from the minicard's own (usually stale, useless) editable state. svn path=/trunk/; revision=28308 --- addressbook/ChangeLog | 6 ++++++ addressbook/gui/widgets/e-minicard.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index a04263a148..34c1ef772d 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2005-01-10 Hans Petter Jansson + + * gui/widgets/e-minicard.c (e_minicard_activate_editor): When spawning + an editor, set the initial editability from the target book, not from + the minicard's own (usually stale, useless) editable state. + 2005-01-06 JP Rosevear * gui/component/Makefile.am: install schemas properly diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c index be827c89be..0abdff7fce 100644 --- a/addressbook/gui/widgets/e-minicard.c +++ b/addressbook/gui/widgets/e-minicard.c @@ -549,12 +549,12 @@ e_minicard_activate_editor(EMinicard *minicard) if (book != NULL) { if (e_contact_get (minicard->contact, E_CONTACT_IS_LIST)) { EContactListEditor *editor = eab_show_contact_list_editor (book, minicard->contact, - FALSE, minicard->editable); + FALSE, e_book_is_writable (book)); minicard->editor = EAB_EDITOR (editor); } else { EContactEditor *editor = eab_show_contact_editor (book, minicard->contact, - FALSE, minicard->editable); + FALSE, e_book_is_writable (book)); minicard->editor = EAB_EDITOR (editor); } -- cgit v1.2.3