comparison src/list.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 a1551892049c
children 4228bddbf2cd
comparison
equal deleted inserted replaced
4935:b89f7c450d6c 4936:cfeab08d4be9
343 while (child) { 343 while (child) {
344 GaimBlistNode *n = child; 344 GaimBlistNode *n = child;
345 child = child->next; 345 child = child->next;
346 gaim_blist_remove_buddy((struct buddy*)n); 346 gaim_blist_remove_buddy((struct buddy*)n);
347 } 347 }
348
349 if(node->parent->child == node)
350 node->parent->child = node->next;
351 if (node->prev)
352 node->prev->next = node->next;
353 if (node->next)
354 node->next->prev = node->prev;
355
348 ops->remove(gaimbuddylist, node); 356 ops->remove(gaimbuddylist, node);
349 g_free(group->name); 357 g_free(group->name);
350 g_free(group); 358 g_free(group);
351 } 359 }
352 360