comparison 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
comparison
equal deleted inserted replaced
4667:4bf9c6e8e432 4668:6e7196dcfd37
2062 2062
2063 gtk_widget_show(menu); 2063 gtk_widget_show(menu);
2064 2064
2065 /* Fill it with entries. */ 2065 /* Fill it with entries. */
2066 for (gcs = connections; gcs != NULL; gcs = gcs->next) { 2066 for (gcs = connections; gcs != NULL; gcs = gcs->next) {
2067
2068 char buf[256];
2067 struct gaim_connection *gc; 2069 struct gaim_connection *gc;
2068 2070
2069 found_online = TRUE; 2071 found_online = TRUE;
2070 2072
2071 gc = (struct gaim_connection *)gcs->data; 2073 gc = (struct gaim_connection *)gcs->data;
2072 2074
2073 menuitem = gtk_radio_menu_item_new_with_label(group, gc->username); 2075 g_snprintf(buf, sizeof(buf), "%s (%s)", gc->username, gc->prpl->name);
2076
2077 menuitem = gtk_radio_menu_item_new_with_label(group, buf);
2074 group = gtk_radio_menu_item_group(GTK_RADIO_MENU_ITEM(menuitem)); 2078 group = gtk_radio_menu_item_group(GTK_RADIO_MENU_ITEM(menuitem));
2075 2079
2076 g_object_set_data(G_OBJECT(menuitem), "user_data", win); 2080 g_object_set_data(G_OBJECT(menuitem), "user_data", win);
2077 2081
2078 g_signal_connect(G_OBJECT(menuitem), "activate", 2082 g_signal_connect(G_OBJECT(menuitem), "activate",