From f36d551daf3dddfe266d712c91d5cfbc1476eef7 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Sat, 18 Aug 2001 02:46:39 +0000 Subject: call e_card_set_id on the list's card so we can continue to use this 2001-08-17 Chris Toshok * gui/contact-list-editor/e-contact-list-editor.c (list_added_cb): call e_card_set_id on the list's card so we can continue to use this dialog. also, call command_state_changed if we aren't closing the dialog so the toolbar is properly sensitized. (list_deleted_cb): always close the dialog after we successfully delete a list. * gui/contact-editor/e-contact-editor.c (card_added_cb): call e_card_set_id on the card so we can continue to use this dialog (to modify or delete the card.) (card_deleted_cb): always close the dialog after we successfully delete a card. svn path=/trunk/; revision=12191 --- addressbook/gui/contact-editor/e-contact-editor.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'addressbook/gui/contact-editor') diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 688140f46a..cd22ee0c18 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -794,6 +794,8 @@ card_added_cb (EBook *book, EBookStatus status, const char *id, EditorCloseStruc g_free (ecs); + e_card_set_id (ce->card, id); + gtk_signal_emit (GTK_OBJECT (ce), contact_editor_signals[CARD_ADDED], status, ce->card); @@ -956,6 +958,10 @@ card_deleted_cb (EBook *book, EBookStatus status, EContactEditor *ce) { gtk_signal_emit (GTK_OBJECT (ce), contact_editor_signals[CARD_DELETED], status, ce->card); + + /* always close the dialog after we successfully delete a card */ + if (status == E_BOOK_STATUS_SUCCESS) + close_dialog (ce); } static void -- cgit v1.2.3