Mercurial > pidgin.yaz
comparison src/connection.c @ 9285:7a8aa87164ae
[gaim-migrate @ 10088]
Ok I'm done. This started out as shx's patch to make add/remove
buddy/buddies take GaimBuddy and GaimGroup's in various places.
I think his diff was like 2000 lines and mine is like 5000. I
tried to clean up blist.c a bit and make it more uniform. There
are some more g_return_if_fail() checks. Removed some code that
was deprecated--it's probably been long enough. Removed some
#include <multi.h>'s. Make blist.xml saving happen on a timer,
like prefs.xml and accounts.xml.
Sorry if this doesn't merge cleanly with whatever you're doing.
People should really test this a lot.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 15 Jun 2004 02:37:27 +0000 |
parents | 9e3289499977 |
children | 267eab8f3fa4 |
comparison
equal
deleted
inserted
replaced
9284:fe0291162312 | 9285:7a8aa87164ae |
---|---|
309 } | 309 } |
310 | 310 |
311 if (gc->state == GAIM_CONNECTED) { | 311 if (gc->state == GAIM_CONNECTED) { |
312 GaimBlistNode *gnode,*cnode,*bnode; | 312 GaimBlistNode *gnode,*cnode,*bnode; |
313 GList *wins; | 313 GList *wins; |
314 GList *add_buds=NULL; | 314 GList *add_buds = NULL; |
315 GaimAccount *account = gaim_connection_get_account(gc); | 315 GaimAccount *account = gaim_connection_get_account(gc); |
316 | 316 |
317 /* Set the time the account came online */ | 317 /* Set the time the account came online */ |
318 time(&gc->login_time); | 318 time(&gc->login_time); |
319 | 319 |
375 if(!GAIM_BLIST_NODE_IS_BUDDY(bnode)) | 375 if(!GAIM_BLIST_NODE_IS_BUDDY(bnode)) |
376 continue; | 376 continue; |
377 | 377 |
378 b = (GaimBuddy *)bnode; | 378 b = (GaimBuddy *)bnode; |
379 if(b->account == gc->account) { | 379 if(b->account == gc->account) { |
380 add_buds = g_list_append(add_buds, b->name); | 380 add_buds = g_list_append(add_buds, b); |
381 } | 381 } |
382 } | 382 } |
383 } | 383 } |
384 } | 384 } |
385 | 385 |