aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook.h
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-12-17 12:23:36 +0800
committerHans Petter <hansp@src.gnome.org>2003-12-17 12:23:36 +0800
commit216085f3c1c253bb9c3418af484ff571c8111414 (patch)
treea75ab1da17079ff8b8aa37d79d052f765ee2c29a /addressbook/gui/component/addressbook.h
parent0a13fd3702b265298268ece517c3c99e519c7b79 (diff)
downloadgsoc2013-evolution-216085f3c1c253bb9c3418af484ff571c8111414.tar
gsoc2013-evolution-216085f3c1c253bb9c3418af484ff571c8111414.tar.gz
gsoc2013-evolution-216085f3c1c253bb9c3418af484ff571c8111414.tar.bz2
gsoc2013-evolution-216085f3c1c253bb9c3418af484ff571c8111414.tar.lz
gsoc2013-evolution-216085f3c1c253bb9c3418af484ff571c8111414.tar.xz
gsoc2013-evolution-216085f3c1c253bb9c3418af484ff571c8111414.tar.zst
gsoc2013-evolution-216085f3c1c253bb9c3418af484ff571c8111414.zip
Make a public function that shows an error dialog, which can be used when
2003-12-16 Hans Petter Jansson <hpj@ximian.com> * 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
Diffstat (limited to 'addressbook/gui/component/addressbook.h')
-rw-r--r--addressbook/gui/component/addressbook.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/addressbook/gui/component/addressbook.h b/addressbook/gui/component/addressbook.h
index fb05287133..16395789e2 100644
--- a/addressbook/gui/component/addressbook.h
+++ b/addressbook/gui/component/addressbook.h
@@ -14,6 +14,7 @@ void addressbook_load_uri (EBook *book, const char *uri, EBook
#endif
void addressbook_load_source (EBook *book, ESource *source, EBookCallback cb, gpointer closure);
void addressbook_load_default_book (EBookCallback open_response, gpointer closure);
+void addressbook_show_load_error_dialog (GtkWidget *parent, ESource *source, EBookStatus status);
BonoboControl *addressbook_new_control (void);