From eca83b21db88e5d9e9ac712bd566942c8b2ff00a Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sun, 4 Mar 2001 09:55:49 +0000 Subject: Cleaned up the formatting in this file a bit. 2001-03-04 Christopher James Lahey * backend/ebook/e-card-simple.c: Cleaned up the formatting in this file a bit. * contact-editor/e-contact-editor.c (e_contact_editor_set_arg): Made it so that passing in NULL to the writable_fields arg sets the set of writable fields to the empty set. * gui/component/select-names/e-select-names-text-model.c (e_select_names_text_model_activate_obj): Pass NULL as the writable_fields argument here. * gui/widgets/e-addressbook-model.c: Don't offset by one here. This way we will get the file_as field as one of our ETableColumns. * gui/widgets/e-addressbook-view.c (SPEC): Updated this for the changes in ECardSimple. * gui/widgets/e-minicard.c (remodel): Don't remodel if the item isn't realized. svn path=/trunk/; revision=8538 --- addressbook/gui/contact-editor/e-contact-editor.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (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 006f1ba150..7a3e485d05 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -1064,8 +1064,13 @@ e_contact_editor_set_arg (GtkObject *o, GtkArg *arg, guint arg_id) break; case ARG_WRITABLE_FIELDS: + if (editor->writable_fields) + gtk_object_unref(GTK_OBJECT(editor->writable_fields)); editor->writable_fields = GTK_VALUE_POINTER (*arg); - gtk_object_ref (GTK_OBJECT (editor->writable_fields)); + if (editor->writable_fields) + gtk_object_ref (GTK_OBJECT (editor->writable_fields)); + else + editor->writable_fields = e_list_new(NULL, NULL, NULL); enable_writable_fields (editor); break; } -- cgit v1.2.3