aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-editor
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-03-04 17:55:49 +0800
committerChris Lahey <clahey@src.gnome.org>2001-03-04 17:55:49 +0800
commiteca83b21db88e5d9e9ac712bd566942c8b2ff00a (patch)
tree3cf52f973bf173a59ce368a83dbcba7bdf141e05 /addressbook/gui/contact-editor
parent0ce6720cb1d96607fbc233e0e6f2b9a8c7a86a1c (diff)
downloadgsoc2013-evolution-eca83b21db88e5d9e9ac712bd566942c8b2ff00a.tar
gsoc2013-evolution-eca83b21db88e5d9e9ac712bd566942c8b2ff00a.tar.gz
gsoc2013-evolution-eca83b21db88e5d9e9ac712bd566942c8b2ff00a.tar.bz2
gsoc2013-evolution-eca83b21db88e5d9e9ac712bd566942c8b2ff00a.tar.lz
gsoc2013-evolution-eca83b21db88e5d9e9ac712bd566942c8b2ff00a.tar.xz
gsoc2013-evolution-eca83b21db88e5d9e9ac712bd566942c8b2ff00a.tar.zst
gsoc2013-evolution-eca83b21db88e5d9e9ac712bd566942c8b2ff00a.zip
Cleaned up the formatting in this file a bit.
2001-03-04 Christopher James Lahey <clahey@ximian.com> * 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
Diffstat (limited to 'addressbook/gui/contact-editor')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c7
1 files changed, 6 insertions, 1 deletions
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;
}