diff options
author | Chris Toshok <toshok@ximian.com> | 2001-06-09 05:36:58 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-06-09 05:36:58 +0800 |
commit | 01b6f4ee32b0aeb16699af276e47618c1f776378 (patch) | |
tree | f3da0b1a14a5f161349b74a6a5b770a04649c355 /addressbook/gui/widgets/e-addressbook-table-adapter.c | |
parent | d09d4962997e9056652815aab81f49311a6a59a8 (diff) | |
download | gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.gz gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.bz2 gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.lz gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.xz gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.tar.zst gsoc2013-evolution-01b6f4ee32b0aeb16699af276e47618c1f776378.zip |
remove the gtk_widget_show call... (e_contact_editor_show): and put it
2001-06-08 Chris Toshok <toshok@ximian.com>
* contact-editor/e-contact-editor.c (e_contact_editor_new): remove
the gtk_widget_show call...
(e_contact_editor_show): and put it here.
* contact-editor/e-contact-editor.h: add prototype for
e_contact_editor_show.
* gui/widgets/e-minicard.c (e_minicard_event): call
e_addressbook_show_contact_editor.
(card_modified_cb): call e_addressbook_error_dialog if status !=
SUCCESS.
* gui/widgets/e-minicard-view.c (e_minicard_view_event): call
e_addressbook_show_contact_editor. also, use card_modified_cb as
the commit_card callback.
* gui/widgets/e-addressbook-view.c (table_double_click): clean
this area up alot, call e_addressbook_show_contact_editor.
(card_deleted_cb): call e_addressbook_error_dialog.
* gui/widgets/e-addressbook-table-adapter.c
(card_modified_cb): new function, call e_addressbook_error_dialog
if the status != SUCCESS.
(addressbook_set_value_at): use card_modified_cb as the callback
for e_book_commit_card.
* gui/widgets/Makefile.am (libeminicard_a_SOURCES): add
e-addressbook-util.[ch].
* gui/component/addressbook.c (new_contact_cb): use
e_addressbook_show_contact_editor here.
svn path=/trunk/; revision=10164
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-table-adapter.c')
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-table-adapter.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-table-adapter.c b/addressbook/gui/widgets/e-addressbook-table-adapter.c index 47a664df59..5ddc8acdfb 100644 --- a/addressbook/gui/widgets/e-addressbook-table-adapter.c +++ b/addressbook/gui/widgets/e-addressbook-table-adapter.c @@ -3,6 +3,7 @@ #include <config.h> #include "e-addressbook-model.h" #include "e-addressbook-table-adapter.h" +#include "e-addressbook-util.h" #include <gnome-xml/tree.h> #include <gnome-xml/parser.h> #include <gnome-xml/xmlmemory.h> @@ -109,6 +110,14 @@ addressbook_value_at (ETableModel *etc, int col, int row) /* This function sets the value at a particular point in our ETableModel. */ static void +card_modified_cb (EBook* book, EBookStatus status, + gpointer user_data) +{ + g_print ("%s: %s(): a card was modified\n", __FILE__, __FUNCTION__); + if (status != E_BOOK_STATUS_SUCCESS) + e_addressbook_error_dialog (_("Error modifying card"), status); +} +static void addressbook_set_value_at (ETableModel *etc, int col, int row, const void *val) { EAddressbookTableAdapter *adapter = E_ADDRESSBOOK_TABLE_ADAPTER(etc); @@ -127,7 +136,7 @@ addressbook_set_value_at (ETableModel *etc, int col, int row, const void *val) NULL); e_book_commit_card(e_addressbook_model_get_ebook(priv->model), - card, NULL, NULL); + card, card_modified_cb, NULL); /* XXX do we need this? shouldn't the commit_card generate a changed signal? */ e_table_model_cell_changed(etc, col, row); |