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



Author: hadess
Date: Wed Sep 24 21:05:02 2008
New Revision: 352
URL: http://svn.gnome.org/viewvc/nautilus-sendto?rev=352&view=rev

Log:
2008-09-24  Bastien Nocera  <hadess hadess net>

	* src/plugins/evolution.c (contacts_selected_cb):
	Fix (null) print when selecting a contact without
	a full name, or any other information



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	Wed Sep 24 21:05:02 2008
@@ -91,10 +91,12 @@
 		if (name == NULL)
 			name = e_contact_get (contact, E_CONTACT_ORG);
 	}
-
-	text = g_strdup_printf (CONTACT_FORMAT, (char*) name, email);
-	gtk_entry_set_text (GTK_ENTRY (entry), text);
-	g_free (text);
+	if (name != NULL) {
+		text = g_strdup_printf (CONTACT_FORMAT, (char*) name, email);
+		gtk_entry_set_text (GTK_ENTRY (entry), text);
+		g_free (text);
+	} else
+		gtk_entry_set_text (GTK_ENTRY (entry), email);
 }
 
 static void



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