changeset 3082:71c88f2343a6

[gaim-migrate @ 3096] Protocol name in the buddy pounce dialog. Thanks, Jay Guerette. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Tue, 19 Mar 2002 07:15:43 +0000
parents eb364675bbe4
children 219dfcbd6737
files src/dialogs.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Tue Mar 19 06:29:30 2002 +0000
+++ b/src/dialogs.c	Tue Mar 19 07:15:43 2002 +0000
@@ -1162,8 +1162,10 @@
 	GtkWidget *opt;
 	GSList *u = aim_users;
 	struct aim_user *a;
+	struct prpl *p;
 	int count = 0;
 	int place = 0;
+	char buf[2048];
 
 	optmenu = gtk_option_menu_new();
 
@@ -1171,7 +1173,9 @@
 
 	while (u) {
 		a = (struct aim_user *)u->data;
-		opt = gtk_menu_item_new_with_label(a->username);
+		p = (struct prpl *)find_prpl(a->protocol);
+		g_snprintf(buf, sizeof buf, "%s (%s)", a->username, (p && p->name)?p->name():"Unknown");
+		opt = gtk_menu_item_new_with_label(buf);
 		gtk_object_set_user_data(GTK_OBJECT(opt), a);
 		gtk_signal_connect(GTK_OBJECT(opt), "activate", GTK_SIGNAL_FUNC(pounce_choose), b);
 		gtk_menu_append(GTK_MENU(menu), opt);