Mercurial > pidgin
comparison src/dialogs.c @ 4936:cfeab08d4be9
[gaim-migrate @ 5270]
This should fix up the group deletion segfaults, makes the offline groups not
start out collapsed, and probably something else i've forgotten. Oh, yeah,
makes the show offline buddies preference actually work right. Also kills
some code duplication.
I should make buddy icons 100x100, so they can use some of that new blank
space in the buddy list. That'd be cool.
committer: Tailor Script <tailor@pidgin.im>
| author | Nathan Walp <nwalp@pidgin.im> |
|---|---|
| date | Tue, 01 Apr 2003 03:19:51 +0000 |
| parents | cd6415033718 |
| children | 461e8c89514f |
comparison
equal
deleted
inserted
replaced
| 4935:b89f7c450d6c | 4936:cfeab08d4be9 |
|---|---|
| 445 void do_remove_group(struct group *g) | 445 void do_remove_group(struct group *g) |
| 446 { | 446 { |
| 447 GaimBlistNode *b = ((GaimBlistNode*)g)->child; | 447 GaimBlistNode *b = ((GaimBlistNode*)g)->child; |
| 448 while (b) { | 448 while (b) { |
| 449 struct buddy *bd = (struct buddy *)b; | 449 struct buddy *bd = (struct buddy *)b; |
| 450 struct gaim_conversation *c = gaim_find_conversation(bd->name); | |
| 450 serv_remove_buddy(bd->account->gc, bd->name, g->name); | 451 serv_remove_buddy(bd->account->gc, bd->name, g->name); |
| 452 gaim_blist_remove_buddy(bd); | |
| 453 | |
| 454 if (c != NULL) | |
| 455 gaim_conversation_update(c, GAIM_CONV_UPDATE_REMOVE); | |
| 456 | |
| 451 b = b->next; | 457 b = b->next; |
| 452 } | 458 } |
| 453 gaim_blist_remove_group(g); | 459 gaim_blist_remove_group(g); |
| 454 gaim_blist_save(); | 460 gaim_blist_save(); |
| 455 } | 461 } |
