nautilus-sendto r332 - in trunk: . src/plugins



Author: hadess
Date: Thu Jul  3 13:33:11 2008
New Revision: 332
URL: http://svn.gnome.org/viewvc/nautilus-sendto?rev=332&view=rev

Log:
2008-07-03  Bastien Nocera  <hadess hadess net>

	* src/plugins/evolution.c (contacts_selected_cb):
	When selecting a contact, use the identifier as the email if it's
	provided, otherwise we'll always be selecting the default email
	address (Closes: #541309)



Modified:
   trunk/ChangeLog
   trunk/src/plugins/evolution.c

Modified: trunk/src/plugins/evolution.c
==============================================================================
--- trunk/src/plugins/evolution.c	(original)
+++ trunk/src/plugins/evolution.c	Thu Jul  3 13:33:11 2008
@@ -74,7 +74,16 @@
 {
 	char *text;
 
-	email = e_contact_get (contact, E_CONTACT_EMAIL_1);
+	g_free (email);
+	email = NULL;
+
+	if (identifier != NULL)
+		email = g_strdup (identifier);
+	else
+		email = e_contact_get (contact, E_CONTACT_EMAIL_1);
+
+	g_free (name);
+	name = NULL;
 
 	name = e_contact_get (contact, E_CONTACT_FULL_NAME);
 	if (name == NULL) {



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