Mercurial > pidgin
comparison src/blist.c @ 5278:1dcdc2504849
[gaim-migrate @ 5650]
let chats participate in the O(1) group number goodness
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 01 May 2003 19:34:30 +0000 |
parents | d7771fe33cbd |
children | abd6d3abbe37 |
comparison
equal
deleted
inserted
replaced
5277:d7771fe33cbd | 5278:1dcdc2504849 |
---|---|
345 if(cnode->prev) | 345 if(cnode->prev) |
346 cnode->prev->next = cnode->next; | 346 cnode->prev->next = cnode->next; |
347 if(cnode->parent->child == cnode) | 347 if(cnode->parent->child == cnode) |
348 cnode->parent->child = cnode->next; | 348 cnode->parent->child = cnode->next; |
349 | 349 |
350 ((struct group *)((GaimBlistNode *)chat)->parent)->online--; | |
351 | |
350 ops->remove(gaimbuddylist, cnode); | 352 ops->remove(gaimbuddylist, cnode); |
351 | 353 |
352 save = TRUE; | 354 save = TRUE; |
353 } | 355 } |
354 | 356 |
368 cnode->parent = (GaimBlistNode*)g; | 370 cnode->parent = (GaimBlistNode*)g; |
369 g->totalsize++; | 371 g->totalsize++; |
370 if (chat->account->gc) | 372 if (chat->account->gc) |
371 g->currentsize++; | 373 g->currentsize++; |
372 } | 374 } |
375 | |
376 ((struct group *)((GaimBlistNode *)chat)->parent)->online++; | |
373 | 377 |
374 if (ops) | 378 if (ops) |
375 ops->update(gaimbuddylist, (GaimBlistNode*)cnode); | 379 ops->update(gaimbuddylist, (GaimBlistNode*)cnode); |
376 if (save) | 380 if (save) |
377 gaim_blist_save(); | 381 gaim_blist_save(); |