diff src/gtkconv.c @ 4668:6e7196dcfd37

[gaim-migrate @ 4979] Too many accounts with the same name is a pain in the Send As menu. Now it shows the protocol as well. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 08 Mar 2003 00:14:33 +0000
parents 951204c08b13
children d715736164ae
line wrap: on
line diff
--- a/src/gtkconv.c	Fri Mar 07 23:49:10 2003 +0000
+++ b/src/gtkconv.c	Sat Mar 08 00:14:33 2003 +0000
@@ -2064,13 +2064,17 @@
 
 	/* Fill it with entries. */
 	for (gcs = connections; gcs != NULL; gcs = gcs->next) {
+
+		char buf[256];
 		struct gaim_connection *gc;
 
 		found_online = TRUE;
 
 		gc = (struct gaim_connection *)gcs->data;
 
-		menuitem = gtk_radio_menu_item_new_with_label(group, gc->username);
+		g_snprintf(buf, sizeof(buf), "%s (%s)", gc->username, gc->prpl->name);
+
+		menuitem = gtk_radio_menu_item_new_with_label(group, buf);
 		group = gtk_radio_menu_item_group(GTK_RADIO_MENU_ITEM(menuitem));
 
 		g_object_set_data(G_OBJECT(menuitem), "user_data", win);