comparison src/server.c @ 4770:c4c28874ecd3

[gaim-migrate @ 5088] I want to go to sleep. This is drag-n-drop moving of buddies in the list. I think it works, but I didn't actually test it... I really should have though; I can't imagine it working fine as-is. ;) I'm holding off on the rest of my Edit Buddy List stuff for tomorrow... I love last minute things, don't I? Note: I created gaim_blist_members and gaim_blist_groups to reproduce the effects of the old groups GSList and the members GSList of the group struct that I removed. This is really sub-optimal and should be replaced to iterate the Buddy List directly. If someone wants to do that, please do. Even if you don't want to do that, just review the changes I made and make sure I didn't do anything stupid. It is past 6am and I'm a bit tired and prone to mistake making. Thanks. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 14 Mar 2003 11:38:21 +0000
parents f6d83e81d45a
children 677d3cb193a1
comparison
equal deleted inserted replaced
4769:e0afac5f85bd 4770:c4c28874ecd3
391 { 391 {
392 if (g && g->prpl && old_group && new_name) { 392 if (g && g->prpl && old_group && new_name) {
393 GList *tobemoved = NULL; 393 GList *tobemoved = NULL;
394 GSList *original; 394 GSList *original;
395 395
396 for (original=old_group->members; original; original=g_slist_next(original)) { 396 /* for (original=old_group->members; original; original=g_slist_next(original)) {
397 struct buddy *b = original->data; 397 struct buddy *b = original->data;
398 if(b->account == g->account) 398 if(b->account == g->account)
399 tobemoved = g_list_append(tobemoved, b->name); 399 tobemoved = g_list_append(tobemoved, b->name);
400 } 400 } */
401 401
402 if (g->prpl->rename_group) { 402 if (g->prpl->rename_group) {
403 /* prpl's might need to check if the group already 403 /* prpl's might need to check if the group already
404 * exists or not, and handle that differently */ 404 * exists or not, and handle that differently */
405 g->prpl->rename_group(g, old_group->name, new_name, tobemoved); 405 g->prpl->rename_group(g, old_group->name, new_name, tobemoved);