Mercurial > pidgin
comparison src/account.c @ 10447:6feef0a9098a
[gaim-migrate @ 11712]
A few minor improvements and some documentation updates.
Conscious evolution in the back of your mind...
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 29 Dec 2004 21:53:59 +0000 |
parents | b6ca0e1b19d0 |
children | 6a20307ef8dc |
comparison
equal
deleted
inserted
replaced
10446:904d03bfccce | 10447:6feef0a9098a |
---|---|
581 g_free, (GDestroyNotify)g_hash_table_destroy); | 581 g_free, (GDestroyNotify)g_hash_table_destroy); |
582 account->system_log = NULL; | 582 account->system_log = NULL; |
583 | 583 |
584 account->presence = gaim_presence_new_for_account(account); | 584 account->presence = gaim_presence_new_for_account(account); |
585 | 585 |
586 prpl = gaim_find_prpl(gaim_account_get_protocol_id(account)); | 586 prpl = gaim_find_prpl(protocol_id); |
587 | 587 |
588 if (prpl == NULL) | 588 if (prpl == NULL) |
589 return account; | 589 return account; |
590 | 590 |
591 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(prpl); | 591 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(prpl); |
592 if ( prpl_info != NULL && prpl_info->status_types != NULL ) | 592 if (prpl_info != NULL && prpl_info->status_types != NULL ) |
593 gaim_account_set_status_types(account, prpl_info->status_types(account)); | 593 gaim_account_set_status_types(account, prpl_info->status_types(account)); |
594 | 594 |
595 gaim_presence_set_status_active(account->presence, "offline", TRUE); | 595 gaim_presence_set_status_active(account->presence, "offline", TRUE); |
596 | 596 |
597 return account; | 597 return account; |
1697 GAIM_SUBTYPE_ACCOUNT), | 1697 GAIM_SUBTYPE_ACCOUNT), |
1698 gaim_value_new(GAIM_TYPE_STRING), | 1698 gaim_value_new(GAIM_TYPE_STRING), |
1699 gaim_value_new(GAIM_TYPE_UINT)); | 1699 gaim_value_new(GAIM_TYPE_UINT)); |
1700 | 1700 |
1701 gaim_signal_register(handle, "account-added", | 1701 gaim_signal_register(handle, "account-added", |
1702 gaim_marshal_VOID__POINTER, NULL, 1, | 1702 gaim_marshal_VOID__POINTER, NULL, 1, |
1703 gaim_value_new(GAIM_TYPE_SUBTYPE, GAIM_SUBTYPE_ACCOUNT)); | 1703 gaim_value_new(GAIM_TYPE_SUBTYPE, GAIM_SUBTYPE_ACCOUNT)); |
1704 | 1704 |
1705 gaim_signal_register(handle, "account-removed", | 1705 gaim_signal_register(handle, "account-removed", |
1706 gaim_marshal_VOID__POINTER, NULL, 1, | 1706 gaim_marshal_VOID__POINTER, NULL, 1, |
1707 gaim_value_new(GAIM_TYPE_SUBTYPE, GAIM_SUBTYPE_ACCOUNT)); | 1707 gaim_value_new(GAIM_TYPE_SUBTYPE, GAIM_SUBTYPE_ACCOUNT)); |
1708 } | 1708 } |
1709 | 1709 |
1710 void | 1710 void |
1711 gaim_accounts_uninit(void) | 1711 gaim_accounts_uninit(void) |
1712 { | 1712 { |