aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans petter Jansson <hpj@ximian.com>2004-02-25 09:36:35 +0800
committerHans Petter <hansp@src.gnome.org>2004-02-25 09:36:35 +0800
commitdbb8a61852e4ca800be2267525ca241a6a8f5325 (patch)
tree8bbff822f57cc9d9e067972ccbcb18ab7c80dc33
parent407045be4927e6e22c2f204f4a242ae1260e42ba (diff)
downloadgsoc2013-evolution-dbb8a61852e4ca800be2267525ca241a6a8f5325.tar.gz
gsoc2013-evolution-dbb8a61852e4ca800be2267525ca241a6a8f5325.tar.zst
gsoc2013-evolution-dbb8a61852e4ca800be2267525ca241a6a8f5325.zip
Port to new way of setting name in contact.
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. svn path=/trunk/; revision=24861
-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