Mercurial > pidgin
comparison plugins/ticker/ticker.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 | e19f91053ad0 |
children | b5508e864987 |
comparison
equal
deleted
inserted
replaced
4769:e0afac5f85bd | 4770:c4c28874ecd3 |
---|---|
328 tickerbuds = (GList *) NULL; | 328 tickerbuds = (GList *) NULL; |
329 } | 329 } |
330 | 330 |
331 void BuddyTickerShow() | 331 void BuddyTickerShow() |
332 { | 332 { |
333 /* Someone should fix the ticker | |
333 struct group *g; | 334 struct group *g; |
334 struct buddy *b; | 335 struct buddy *b; |
335 GSList *grps, *buds; | 336 GSList *grps, *buds; |
336 const char *xpm; | 337 const char *xpm; |
337 | |
338 for( grps = groups; grps; grps = grps->next ) { | 338 for( grps = groups; grps; grps = grps->next ) { |
339 g = (struct group *)grps->data; | 339 g = (struct group *)grps->data; |
340 for( buds = g->members; buds; buds = buds->next ) { | 340 for( buds = g->members; buds; buds = buds->next ) { |
341 b = (struct buddy *)buds->data; | 341 b = (struct buddy *)buds->data; |
342 if( b->present ) { | 342 if( b->present ) { |
345 xpm = b->account->gc->prpl->list_icon(b->account, b); | 345 xpm = b->account->gc->prpl->list_icon(b->account, b); |
346 BuddyTickerAddUser( b->name, gaim_get_buddy_alias(b), xpm); | 346 BuddyTickerAddUser( b->name, gaim_get_buddy_alias(b), xpm); |
347 } | 347 } |
348 } | 348 } |
349 } | 349 } |
350 */ | |
350 } | 351 } |
351 | 352 |
352 void signon_cb(struct gaim_connection *gc, char *who) { | 353 void signon_cb(struct gaim_connection *gc, char *who) { |
353 struct buddy *b = gaim_find_buddy(gc->account, who); | 354 struct buddy *b = gaim_find_buddy(gc->account, who); |
354 const char *xpm = NULL; | 355 const char *xpm = NULL; |