Mercurial > pidgin
comparison src/dialogs.c @ 6885:66dd420d3d23
[gaim-migrate @ 7431]
Add support for removing groups in protocols. Currently, only MSN supports
it, but you cannot delete group 0 (aka, "The evil ~ group of DOOM!"), so
I'll add a GrossHack (TM) to not show that group if it's empty.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 18 Sep 2003 05:39:44 +0000 |
parents | 618124fe3289 |
children | 083d1e4a9c78 |
comparison
equal
deleted
inserted
replaced
6884:5bd9f201b4bf | 6885:66dd420d3d23 |
---|---|
433 } | 433 } |
434 | 434 |
435 void do_remove_group(GaimGroup *g) | 435 void do_remove_group(GaimGroup *g) |
436 { | 436 { |
437 GaimBlistNode *cnode, *bnode; | 437 GaimBlistNode *cnode, *bnode; |
438 | |
438 cnode = ((GaimBlistNode*)g)->child; | 439 cnode = ((GaimBlistNode*)g)->child; |
440 | |
439 while(cnode) { | 441 while(cnode) { |
440 if(GAIM_BLIST_NODE_IS_CONTACT(cnode)) { | 442 if(GAIM_BLIST_NODE_IS_CONTACT(cnode)) { |
441 bnode = cnode->child; | 443 bnode = cnode->child; |
442 cnode = cnode->next; | 444 cnode = cnode->next; |
443 while(bnode) { | 445 while(bnode) { |
465 gaim_blist_remove_chat(chat); | 467 gaim_blist_remove_chat(chat); |
466 } else { | 468 } else { |
467 cnode = cnode->next; | 469 cnode = cnode->next; |
468 } | 470 } |
469 } | 471 } |
472 | |
470 gaim_blist_remove_group(g); | 473 gaim_blist_remove_group(g); |
471 gaim_blist_save(); | 474 gaim_blist_save(); |
472 } | 475 } |
473 | 476 |
474 void show_confirm_del(GaimBuddy *b) | 477 void show_confirm_del(GaimBuddy *b) |