evolution r35072 - in trunk/addressbook: . gui/contact-list-editor



Author: mcrha
Date: Fri Feb 22 18:46:47 2008
New Revision: 35072
URL: http://svn.gnome.org/viewvc/evolution?rev=35072&view=rev

Log:
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.



Modified:
   trunk/addressbook/ChangeLog
   trunk/addressbook/gui/contact-list-editor/e-contact-list-editor.c

Modified: trunk/addressbook/gui/contact-list-editor/e-contact-list-editor.c
==============================================================================
--- trunk/addressbook/gui/contact-list-editor/e-contact-list-editor.c	(original)
+++ trunk/addressbook/gui/contact-list-editor/e-contact-list-editor.c	Fri Feb 22 18:46:47 2008
@@ -1387,6 +1387,7 @@
 	gint email_num = -1;
 	GList *list, *iter;
 	GList *values;
+	char *value;
 
 	destination = e_destination_new ();
 
@@ -1407,16 +1408,17 @@
 			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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]