Mercurial > pidgin
changeset 1793:00c753b86710
[gaim-migrate @ 1803]
neat
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 02 May 2001 00:10:38 +0000 |
parents | de88617f542c |
children | 60b3fd819cce |
files | src/buddy_chat.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buddy_chat.c Tue May 01 21:47:24 2001 +0000 +++ b/src/buddy_chat.c Wed May 02 00:10:38 2001 +0000 @@ -99,12 +99,15 @@ gtk_box_pack_start(GTK_BOX(box), optmenu, FALSE, FALSE, 0); menu = gtk_menu_new(); + joinchatgc = NULL; while (c) { g = (struct gaim_connection *)c->data; c = c->next; if (!g->prpl->join_chat) continue; + if (!joinchatgc) + joinchatgc = g; g_snprintf(buf, sizeof buf, "%s (%s)", g->username, (*g->prpl->name)()); opt = gtk_menu_item_new_with_label(buf); gtk_object_set_user_data(GTK_OBJECT(opt), g); @@ -115,8 +118,6 @@ gtk_option_menu_set_menu(GTK_OPTION_MENU(optmenu), menu); gtk_option_menu_set_history(GTK_OPTION_MENU(optmenu), 0); - - joinchatgc = connections->data; }