From 216085f3c1c253bb9c3418af484ff571c8111414 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Wed, 17 Dec 2003 04:23:36 +0000 Subject: Make a public function that shows an error dialog, which can be used when 2003-12-16 Hans Petter Jansson * gui/component/addressbook.c (addressbook_show_load_error_dialog): Make a public function that shows an error dialog, which can be used when a source fails to load. (book_open_cb): Call addressbook_show_load_error_dialog () on error. (set_prop): Don't reuse the book when loading a new source. This was confusing the contact-editor, which gets the book passed in. * gui/contact-editor/e-contact-editor.c (e_contact_editor_class_init): Make "source_book" and "target_book" distinct properties. (new_target_cb): Implement. (source_selected): Implement. (contact_moved_cb): Implement. (contact_added_cb): Handle the case where source_book != target_book as a move - if the add was successful, remove contact from source book. (save_contact): Handle case where source_book != target_book. (delete_cb): "book" renamed to "source_book". (e_contact_editor_init): Set up source_selected signal. (e_contact_editor_dispose): Dispose of both source and target books. (e_contact_editor_new): "book" renamed to "source_book". (e_contact_editor_set_property): If a source book is set, and we don't have a target book, make target_book == source_book. Allow setting target book, and base editability on that. If we're editing an existing contact, treat book change as a change, and update command state. (e_contact_editor_get_property): Allow getting target book. (set_source_field): Indicate the selected book. svn path=/trunk/; revision=23958 --- addressbook/ChangeLog | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'addressbook/ChangeLog') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 8b6e1b0f79..4f2d70de5c 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,31 @@ +2003-12-16 Hans Petter Jansson + + * gui/component/addressbook.c (addressbook_show_load_error_dialog): + Make a public function that shows an error dialog, which can be used + when a source fails to load. + (book_open_cb): Call addressbook_show_load_error_dialog () on error. + (set_prop): Don't reuse the book when loading a new source. This was + confusing the contact-editor, which gets the book passed in. + + * gui/contact-editor/e-contact-editor.c (e_contact_editor_class_init): + Make "source_book" and "target_book" distinct properties. + (new_target_cb): Implement. + (source_selected): Implement. + (contact_moved_cb): Implement. + (contact_added_cb): Handle the case where source_book != target_book as + a move - if the add was successful, remove contact from source book. + (save_contact): Handle case where source_book != target_book. + (delete_cb): "book" renamed to "source_book". + (e_contact_editor_init): Set up source_selected signal. + (e_contact_editor_dispose): Dispose of both source and target books. + (e_contact_editor_new): "book" renamed to "source_book". + (e_contact_editor_set_property): If a source book is set, and we don't + have a target book, make target_book == source_book. Allow setting + target book, and base editability on that. If we're editing an existing + contact, treat book change as a change, and update command state. + (e_contact_editor_get_property): Allow getting target book. + (set_source_field): Indicate the selected book. + 2003-12-16 Hans Petter Jansson * gui/contact-editor/e-contact-editor.c (set_source_field): Implement. -- cgit v1.2.3