Mercurial > pidgin
comparison src/list.c @ 4971:da7a91c2e0dc
[gaim-migrate @ 5305]
I decided it would be cool to be able to drag buddies into an empty group.
I'm weird like that.
committer: Tailor Script <tailor@pidgin.im>
| author | Nathan Walp <nwalp@pidgin.im> |
|---|---|
| date | Thu, 03 Apr 2003 05:59:01 +0000 |
| parents | decdf19454ab |
| children | 070181118a77 |
comparison
equal
deleted
inserted
replaced
| 4970:4087669769e8 | 4971:da7a91c2e0dc |
|---|---|
| 216 if (!g) { | 216 if (!g) { |
| 217 g = gaim_group_new(_("Buddies")); | 217 g = gaim_group_new(_("Buddies")); |
| 218 gaim_blist_add_group(g, NULL); | 218 gaim_blist_add_group(g, NULL); |
| 219 } | 219 } |
| 220 n = gaim_blist_get_last_child((GaimBlistNode*)g); | 220 n = gaim_blist_get_last_child((GaimBlistNode*)g); |
| 221 } else { | |
| 222 g = (struct group*)n->parent; | |
| 221 } | 223 } |
| 222 | 224 |
| 223 /* if we're moving to overtop of ourselves, do nothing */ | 225 /* if we're moving to overtop of ourselves, do nothing */ |
| 224 if((GaimBlistNode*)buddy == n) | 226 if((GaimBlistNode*)buddy == n) |
| 225 return; | 227 return; |
| 235 if (node2) | 237 if (node2) |
| 236 node2->prev = node3; | 238 node2->prev = node3; |
| 237 if (node3) | 239 if (node3) |
| 238 node3->next = node2; | 240 node3->next = node2; |
| 239 | 241 |
| 240 if (((GaimBlistNode*)buddy)->parent != n->parent) | 242 if (((GaimBlistNode*)buddy)->parent != ((GaimBlistNode*)g)) |
| 241 serv_move_buddy(buddy, (struct group*)((GaimBlistNode*)buddy)->parent, | 243 serv_move_buddy(buddy, (struct group*)((GaimBlistNode*)buddy)->parent, g); |
| 242 (struct group*)n->parent); | |
| 243 save = TRUE; | 244 save = TRUE; |
| 244 } | 245 } |
| 245 | 246 |
| 246 if (n) { | 247 if (n) { |
| 247 ((GaimBlistNode*)buddy)->next = n->next; | 248 ((GaimBlistNode*)buddy)->next = n->next; |
