comparison 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
comparison
equal deleted inserted replaced
11615:a9c5fcce537b 11616:d09d94db1a89
2632 GtkWidget *box; 2632 GtkWidget *box;
2633 GtkWidget *label; 2633 GtkWidget *label;
2634 GtkWidget *image; 2634 GtkWidget *image;
2635 GtkWidget *menuitem; 2635 GtkWidget *menuitem;
2636 GdkPixbuf *pixbuf, *scale; 2636 GdkPixbuf *pixbuf, *scale;
2637 gchar *text;
2637 2638
2638 2639
2639 account = bud->account; 2640 account = bud->account;
2640 2641
2641 /* Create a pixmap for the protocol icon. */ 2642 /* Create a pixmap for the protocol icon. */
2652 2653
2653 g_object_unref(G_OBJECT(scale)); 2654 g_object_unref(G_OBJECT(scale));
2654 g_object_unref(G_OBJECT(pixbuf)); 2655 g_object_unref(G_OBJECT(pixbuf));
2655 2656
2656 /* Make our menu item */ 2657 /* Make our menu item */
2657 menuitem = gtk_radio_menu_item_new_with_label(*group, 2658 text = g_strdup_printf("%s (%s)", gaim_buddy_get_name(bud), gaim_account_get_username(bud->account));
2658 gaim_buddy_get_name(bud)); 2659 menuitem = gtk_radio_menu_item_new_with_label(*group, text);
2660 g_free(text);
2659 *group = gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(menuitem)); 2661 *group = gtk_radio_menu_item_get_group(GTK_RADIO_MENU_ITEM(menuitem));
2660 2662
2661 /* Do some evil, see some evil, speak some evil. */ 2663 /* Do some evil, see some evil, speak some evil. */
2662 box = gtk_hbox_new(FALSE, 0); 2664 box = gtk_hbox_new(FALSE, 0);
2663 2665