comparison src/account.c @ 10005:c892b6dbc341

[gaim-migrate @ 10922] Dear everyone: export CFLAGS=-Wall make 1> /dev/null committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 10 Sep 2004 02:51:22 +0000
parents e4d971338093
children a38881ec9c0f
comparison
equal deleted inserted replaced
10004:690ef036f297 10005:c892b6dbc341
518 void 518 void
519 gaim_account_set_status_types(GaimAccount *account, GList *status_types) 519 gaim_account_set_status_types(GaimAccount *account, GList *status_types)
520 { 520 {
521 g_return_if_fail(account != NULL); 521 g_return_if_fail(account != NULL);
522 522
523 /* Old with the old... */
523 if (account->status_types != NULL) 524 if (account->status_types != NULL)
524 { 525 {
525 GList *l; 526 GList *l;
526 527
527 for (l = account->status_types; l != NULL; l = l->next) 528 for (l = account->status_types; l != NULL; l = l->next)
528 gaim_status_type_destroy((GaimStatusType *)l->data); 529 gaim_status_type_destroy((GaimStatusType *)l->data);
529 530
530 g_list_free(account->status_types); 531 g_list_free(account->status_types);
531 } 532 }
532 533
534 /* In with the new... */
533 account->status_types = status_types; 535 account->status_types = status_types;
534 } 536 }
535 537
536 void 538 void
537 gaim_account_set_status(GaimAccount *account, const char *status_id, 539 gaim_account_set_status(GaimAccount *account, const char *status_id,