aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/contact-editor/e-contact-quick-add.c12
2 files changed, 7 insertions, 10 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 0aa2ee40b9..f7b1911d62 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-24 Hans petter Jansson <hpj@ximian.com>
+
+ * gui/contact-editor/e-contact-quick-add.c (quick_add_set_name):
+ Port to new way of setting name in contact.
+
2004-02-24 JP Rosevear <jpr@ximian.com>
* gui/component/addressbook-migrate.c (migration_context_new):
diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c
index 0f59c1145f..10bbe7087a 100644
--- a/addressbook/gui/contact-editor/e-contact-quick-add.c
+++ b/addressbook/gui/contact-editor/e-contact-quick-add.c
@@ -93,23 +93,15 @@ quick_add_unref (QuickAdd *qa)
static void
quick_add_set_name (QuickAdd *qa, const gchar *name)
{
-#if notyet
EContactName *card_name;
if (name == qa->name)
return;
g_free (qa->name);
+ qa->name = g_strdup (name);
- card_name = e_card_name_from_string (name);
- qa->name = e_card_name_to_string (card_name);
-
- g_object_set (qa->card,
- "full_name", qa->name,
- NULL);
-
- e_card_name_unref (card_name);
-#endif
+ e_contact_set (qa->contact, E_CONTACT_FULL_NAME, name);
}
static void