Mercurial > pidgin
comparison src/savedstatuses.c @ 11733:ef511dec9903
[gaim-migrate @ 14024]
The include in gtkaccount isn't used anymore, now that we're using
tabs (yay)
And marv's doco change made me realize I wasn't freeing a glist (yay)
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 23 Oct 2005 02:25:25 +0000 |
parents | 8657ad65e257 |
children | a25be0e70a67 |
comparison
equal
deleted
inserted
replaced
11732:03c813a42c76 | 11733:ef511dec9903 |
---|---|
499 } | 499 } |
500 | 500 |
501 void | 501 void |
502 gaim_savedstatus_activate(const GaimSavedStatus *saved_status) | 502 gaim_savedstatus_activate(const GaimSavedStatus *saved_status) |
503 { | 503 { |
504 GList *accounts; | 504 GList *accounts, *node; |
505 | 505 |
506 g_return_if_fail(saved_status != NULL); | 506 g_return_if_fail(saved_status != NULL); |
507 | 507 |
508 accounts = gaim_accounts_get_all_active(); | 508 accounts = gaim_accounts_get_all_active(); |
509 | 509 |
510 while (accounts != NULL) | 510 for (node = accounts; node != NULL; node = node->next) |
511 { | 511 { |
512 GaimAccount *account; | 512 GaimAccount *account; |
513 | 513 |
514 account = accounts->data; | 514 account = node->data; |
515 gaim_savedstatus_activate_for_account(saved_status, account); | 515 gaim_savedstatus_activate_for_account(saved_status, account); |
516 accounts = accounts->next; | 516 } |
517 } | 517 |
518 g_list_free(accounts); | |
518 } | 519 } |
519 | 520 |
520 void | 521 void |
521 gaim_savedstatus_activate_for_account(const GaimSavedStatus *saved_status, | 522 gaim_savedstatus_activate_for_account(const GaimSavedStatus *saved_status, |
522 GaimAccount *account) | 523 GaimAccount *account) |