Mercurial > pidgin.yaz
diff src/conversation.c @ 2111:109669b3887e
[gaim-migrate @ 2121]
fix a jabber bug and a bug i added last night.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 02 Aug 2001 20:45:08 +0000 |
parents | 3110ea142888 |
children | 56c4382f2909 |
line wrap: on
line diff
--- a/src/conversation.c Thu Aug 02 19:59:25 2001 +0000 +++ b/src/conversation.c Thu Aug 02 20:45:08 2001 +0000 @@ -1855,7 +1855,7 @@ } } -void redo_convo_menus(struct gaim_connection *gc) +void redo_convo_menus() { GList *c = conversations; struct conversation *C; @@ -1866,16 +1866,24 @@ create_convo_menu(C); - if (!gc) + if (g_slist_find(connections, C->gc)) continue; - if (C->gc != gc) - continue; + set_convo_gc(C, connections ? connections->data : NULL); + } +} + +void convo_menu_remove(struct gaim_connection *gc) +{ + GList *c = conversations; + struct conversation *C; + + while (c) { + C = (struct conversation *)c->data; + c = c->next; if (C->gc && C->gc->prpl && C->gc->prpl->remove_convo) (*C->gc->prpl->remove_convo)(C->gc, C); - - set_convo_gc(C, connections ? connections->data : NULL); } }