comparison src/gtkutils.c @ 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 84d8279259c9
children f7ce10cad83d
comparison
equal deleted inserted replaced
11016:6417b2f5de4e 11017:829ab6b71ffe
650 gtk_size_group_add_widget(sg, image); 650 gtk_size_group_add_widget(sg, image);
651 651
652 gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0); 652 gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0);
653 gtk_widget_show(image); 653 gtk_widget_show(image);
654 654
655 g_snprintf(buf, sizeof(buf), "%s (%s)", 655 if (gaim_account_get_alias(account)) {
656 gaim_account_get_username(account), 656 g_snprintf(buf, sizeof(buf), "%s (%s) (%s)",
657 gaim_account_get_protocol_name(account)); 657 gaim_account_get_username(account),
658 gaim_account_get_alias(account),
659 gaim_account_get_protocol_name(account));
660 } else {
661 g_snprintf(buf, sizeof(buf), "%s (%s)",
662 gaim_account_get_username(account),
663 gaim_account_get_protocol_name(account));
664 }
658 665
659 /* Create the label. */ 666 /* Create the label. */
660 label = gtk_label_new(buf); 667 label = gtk_label_new(buf);
661 gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); 668 gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);
662 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); 669 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);