aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@novell.com>2005-01-21 16:37:52 +0800
committerHans Petter <hansp@src.gnome.org>2005-01-21 16:37:52 +0800
commit2e6b3c86047282e3572e74d9458d638eecd773e2 (patch)
tree5cabda120808d23e78393ac058aa2a0a49ee96b3 /addressbook/gui
parentfaf8d6d785d70eb404184db5495fbb726becc831 (diff)
downloadgsoc2013-evolution-2e6b3c86047282e3572e74d9458d638eecd773e2.tar.gz
gsoc2013-evolution-2e6b3c86047282e3572e74d9458d638eecd773e2.tar.zst
gsoc2013-evolution-2e6b3c86047282e3572e74d9458d638eecd773e2.zip
Don't set properties on the contact immediately. (clicked_cb): Set the
2005-01-21 Hans Petter Jansson <hpj@novell.com> * gui/contact-editor/e-contact-quick-add.c (quick_add_set_name) (quick_add_set_email): Don't set properties on the contact immediately. (clicked_cb): Set the properties on the contact immediately before passing it on. This way, the FULL_NAME will only be set once, and so the FILE_AS field will be updated here. svn path=/trunk/; revision=28479
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/contact-editor/e-contact-quick-add.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c
index a317075450..7a167dc5ff 100644
--- a/addressbook/gui/contact-editor/e-contact-quick-add.c
+++ b/addressbook/gui/contact-editor/e-contact-quick-add.c
@@ -98,8 +98,6 @@ quick_add_set_name (QuickAdd *qa, const gchar *name)
g_free (qa->name);
qa->name = g_strdup (name);
-
- e_contact_set (qa->contact, E_CONTACT_FULL_NAME, (char *) name);
}
static void
@@ -110,8 +108,6 @@ quick_add_set_email (QuickAdd *qa, const gchar *email)
g_free (qa->email);
qa->email = g_strdup (email);
-
- e_contact_set (qa->contact, E_CONTACT_EMAIL_1, (char*)email);
}
static void
@@ -242,9 +238,9 @@ clicked_cb (GtkWidget *w, gint button, gpointer closure)
email = tmp;
}
- quick_add_set_name (qa, name);
- quick_add_set_email (qa, email);
-
+ e_contact_set (qa->contact, E_CONTACT_FULL_NAME, (char *) name ? name : "");
+ e_contact_set (qa->contact, E_CONTACT_EMAIL_1, (char *) email ? email : "");
+
g_free (name);
g_free (email);
}