From 62b28b0d5f05bcdff51bcf3bb2c71f06db583e1b Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Wed, 8 Aug 2001 17:04:54 +0000 Subject: mark the dialog as changed so the save button is immediately available. 2001-08-08 Chris Toshok * gui/contact-editor/e-contact-quick-add.c (ce_have_book): mark the dialog as changed so the save button is immediately available. * gui/contact-editor/e-contact-editor.c (card_modified_cb): once we save reset the change flag to false if we aren't closing the dialog. (card_added_cb): same. (e_contact_editor_class_init): add a "changed" arg. (e_contact_editor_set_arg): add setter for "changed". (e_contact_editor_get_arg): add getter for "changed". svn path=/trunk/; revision=11799 --- addressbook/gui/contact-editor/e-contact-quick-add.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'addressbook/gui/contact-editor/e-contact-quick-add.c') diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c index 64e4202291..daed820b6c 100644 --- a/addressbook/gui/contact-editor/e-contact-quick-add.c +++ b/addressbook/gui/contact-editor/e-contact-quick-add.c @@ -181,6 +181,11 @@ ce_have_book (EBook *book, gpointer closure) } else { EContactEditor *contact_editor = e_contact_editor_new (book, qa->card, TRUE, TRUE /* XXX */); + /* mark it as changed so the Save buttons are enabled when we bring up the dialog. */ + gtk_object_set (GTK_OBJECT(contact_editor), + "changed", TRUE, + NULL); + gtk_signal_connect (GTK_OBJECT (contact_editor), "card_added", GTK_SIGNAL_FUNC (card_added_cb), -- cgit v1.2.3