Mercurial > pidgin
diff src/buddy.c @ 1898:73d73939f698
[gaim-migrate @ 1908]
this is part one of three.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 28 May 2001 03:36:04 +0000 |
parents | a02584b98823 |
children | fe79493094e7 |
line wrap: on
line diff
--- a/src/buddy.c Fri May 25 23:07:22 2001 +0000 +++ b/src/buddy.c Mon May 28 03:36:04 2001 +0000 @@ -561,11 +561,7 @@ } else { c = new_conversation(b->name); - c->gc = b->gc; - - gtk_option_menu_set_history(GTK_OPTION_MENU(c->menu), g_slist_index(connections, b->gc)); - - update_buttons_by_protocol(c); + set_convo_gc(c, b->gc); } } @@ -580,12 +576,7 @@ } else { c = new_conversation(b->name); - c->gc = b->connlist->data; - - gtk_option_menu_set_history(GTK_OPTION_MENU(c->menu), - g_slist_index(connections, b->connlist->data)); - - update_buttons_by_protocol(c); + set_convo_gc(c, b->connlist->data); } } @@ -635,11 +626,7 @@ } else { c = new_conversation(b->name); - c->gc = b->connlist->data; - gtk_option_menu_set_history(GTK_OPTION_MENU(c->menu), - g_slist_index(connections, b->connlist->data)); - - update_buttons_by_protocol(c); + set_convo_gc(c, b->connlist->data); } if (display_options & OPT_DISP_ONE_WINDOW) raise_convo_tab(c); @@ -1722,20 +1709,14 @@ if (c == NULL) c = new_conversation(name); - c->gc = u->gc; - gtk_option_menu_set_history(GTK_OPTION_MENU(c->menu), - g_slist_index(connections, u->gc)); - update_buttons_by_protocol(c); + set_convo_gc(c, u->gc); } if (b->options & OPT_POUNCE_SEND_IM) { c = find_conversation(name); if (c == NULL) c = new_conversation(name); - c->gc = u->gc; - gtk_option_menu_set_history(GTK_OPTION_MENU(c->menu), - g_slist_index(connections, u->gc)); - update_buttons_by_protocol(c); + set_convo_gc(c, u->gc); write_to_conv(c, b->message, WFLAG_SEND, NULL, time((time_t)NULL)); serv_send_im(u->gc, name, b->message, 0);