aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-02-23 02:46:47 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-02-23 02:46:47 +0800
commit0e2452ad8d4fad67b70fcced5e3dce1296e9a694 (patch)
tree15ed4920142ee195996e333d8c9ad30053b641cb
parentefb45db411d5f64e95cc2eba2501ff3f73239cb3 (diff)
downloadgsoc2013-evolution-0e2452ad8d4fad67b70fcced5e3dce1296e9a694.tar
gsoc2013-evolution-0e2452ad8d4fad67b70fcced5e3dce1296e9a694.tar.gz
gsoc2013-evolution-0e2452ad8d4fad67b70fcced5e3dce1296e9a694.tar.bz2
gsoc2013-evolution-0e2452ad8d4fad67b70fcced5e3dce1296e9a694.tar.lz
gsoc2013-evolution-0e2452ad8d4fad67b70fcced5e3dce1296e9a694.tar.xz
gsoc2013-evolution-0e2452ad8d4fad67b70fcced5e3dce1296e9a694.tar.zst
gsoc2013-evolution-0e2452ad8d4fad67b70fcced5e3dce1296e9a694.zip
** Part of fix for bug #514836
2008-02-22 Milan Crha <mcrha@redhat.com> ** Part of fix for bug #514836 * gui/contact-list-editor/e-contact-list-editor.c: (contact_list_editor_add_destination): Obsoleting EVC_X_DEST_EMAIL and EVC_X_DEST_NAME. svn path=/trunk/; revision=35072
-rw-r--r--addressbook/ChangeLog8
-rw-r--r--addressbook/gui/contact-list-editor/e-contact-list-editor.c10
2 files changed, 14 insertions, 4 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index fae273d5d4..b1b44c4ae7 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,11 @@
+2008-02-22 Milan Crha <mcrha@redhat.com>
+
+ ** Part of fix for bug #514836
+
+ * gui/contact-list-editor/e-contact-list-editor.c:
+ (contact_list_editor_add_destination):
+ Obsoleting EVC_X_DEST_EMAIL and EVC_X_DEST_NAME.
+
2008-02-20 Srinivasa Ragavan <sragavan@novell.com>
** Fix for bug #517458
diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
index a40be485da..30b6eb4073 100644
--- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c
+++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
@@ -1387,6 +1387,7 @@ contact_list_editor_add_destination (EVCardAttribute *attr,
gint email_num = -1;
GList *list, *iter;
GList *values;
+ char *value;
destination = e_destination_new ();
@@ -1407,16 +1408,17 @@ contact_list_editor_add_destination (EVCardAttribute *attr,
contact_uid = param_data;
else if (!g_ascii_strcasecmp (param_name, EVC_X_DEST_EMAIL_NUM))
email_num = atoi (param_data);
- else if (!g_ascii_strcasecmp (param_name, EVC_X_DEST_NAME))
- e_destination_set_name (destination, param_data);
- else if (!g_ascii_strcasecmp (param_name, EVC_X_DEST_EMAIL))
- e_destination_set_email (destination, param_data);
else if (!g_ascii_strcasecmp (param_name, EVC_X_DEST_HTML_MAIL))
e_destination_set_html_mail_pref (
destination,
!g_ascii_strcasecmp (param_data, "true"));
}
+ value = e_vcard_attribute_get_value (attr);
+ if (value)
+ e_destination_set_raw (destination, value);
+ g_free (value);
+
if (contact_uid != NULL)
e_destination_set_contact_uid (
destination, contact_uid, email_num);