Mercurial > pidgin.yaz
changeset 11017:829ab6b71ffe
[gaim-migrate @ 12886]
I don't think this is particularly important but I suppose some people might find it useful. It makes the account dropdown lists include the account alias (e.g. UIN (alias) (AIM/ICQ) in the Join a Chat dialog).
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Wed, 22 Jun 2005 21:36:23 +0000 |
parents | 6417b2f5de4e |
children | 04f280376f06 |
files | src/gtkutils.c |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkutils.c Tue Jun 21 04:40:34 2005 +0000 +++ b/src/gtkutils.c Wed Jun 22 21:36:23 2005 +0000 @@ -652,9 +652,16 @@ gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0); gtk_widget_show(image); - g_snprintf(buf, sizeof(buf), "%s (%s)", - gaim_account_get_username(account), - gaim_account_get_protocol_name(account)); + if (gaim_account_get_alias(account)) { + g_snprintf(buf, sizeof(buf), "%s (%s) (%s)", + gaim_account_get_username(account), + gaim_account_get_alias(account), + gaim_account_get_protocol_name(account)); + } else { + g_snprintf(buf, sizeof(buf), "%s (%s)", + gaim_account_get_username(account), + gaim_account_get_protocol_name(account)); + } /* Create the label. */ label = gtk_label_new(buf);