diff src/gtkconv.c @ 11616:d09d94db1a89

[gaim-migrate @ 13890] add the account name to the send to menu committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Wed, 05 Oct 2005 02:48:18 +0000
parents f72607814e4a
children de413ae71cba
line wrap: on
line diff
--- a/src/gtkconv.c	Wed Oct 05 02:29:02 2005 +0000
+++ b/src/gtkconv.c	Wed Oct 05 02:48:18 2005 +0000
@@ -2634,6 +2634,7 @@
 	GtkWidget *image;
 	GtkWidget *menuitem;
 	GdkPixbuf *pixbuf, *scale;
+	gchar *text;
 
 
 	account = bud->account;
@@ -2654,8 +2655,9 @@
 	g_object_unref(G_OBJECT(pixbuf));
 
 	/* Make our menu item */
-	menuitem = gtk_radio_menu_item_new_with_label(*group,
-	                                              gaim_buddy_get_name(bud));
+	text = g_strdup_printf("%s (%s)", gaim_buddy_get_name(bud), gaim_account_get_username(bud->account));
+	menuitem = gtk_radio_menu_item_new_with_label(*group, text);
+	g_free(text);
 	*group = gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(menuitem));
 
 	/* Do some evil, see some evil, speak some evil. */