diff options
author | Hans Petter Jansson <hpj@novell.com> | 2005-01-10 15:31:06 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2005-01-10 15:31:06 +0800 |
commit | d7cc0a890b132037a2e5293c153d17f172480135 (patch) | |
tree | 21e0bfed45ab3418fb96523e9125c57001d44f54 /addressbook | |
parent | c3964095b3c7e51e618eda80ee3029dd3233c76d (diff) | |
download | gsoc2013-evolution-d7cc0a890b132037a2e5293c153d17f172480135.tar.gz gsoc2013-evolution-d7cc0a890b132037a2e5293c153d17f172480135.tar.zst gsoc2013-evolution-d7cc0a890b132037a2e5293c153d17f172480135.zip |
When spawning an editor, set the initial editability from the target book,
2005-01-10 Hans Petter Jansson <hpj@novell.com>
* 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
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | 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 <hpj@novell.com> + + * 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 <jpr@novell.com> * 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); } |