aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
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 /addressbook/gui
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
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/contact-editor/e-contact-quick-add.c12
1 files changed, 2 insertions, 10 deletions
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