Mercurial > pidgin
diff libpurple/account.c @ 32578:978dd52814c7
propagate from branch 'im.pidgin.pidgin' (head b64b40b3762950d0b8b4bff4f4bb8bddeefc24ac)
to branch 'im.pidgin.cpw.qulogic.gtk3' (head 907442ea1932404e6753dbf649de9a5ea2406766)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 09 May 2009 20:10:22 +0000 |
parents | 76a1598ecf1c |
children | 8290e36a5a73 |
line wrap: on
line diff
--- a/libpurple/account.c Sun Apr 19 03:21:27 2009 +0000 +++ b/libpurple/account.c Sat May 09 20:10:22 2009 +0000 @@ -954,6 +954,8 @@ /* 0 is not a valid privacy setting */ account->perm_deny = PURPLE_PRIVACY_ALLOW_ALL; + purple_signal_emit(purple_accounts_get_handle(), "account-created", account); + prpl = purple_find_prpl(protocol_id); if (prpl == NULL) @@ -987,6 +989,7 @@ g_return_if_fail(account != NULL); purple_debug_info("account", "Destroying account %p\n", account); + purple_signal_emit(purple_accounts_get_handle(), "account-destroying", account); for (l = purple_get_conversations(); l != NULL; l = l->next) { @@ -2725,6 +2728,14 @@ PURPLE_SUBTYPE_ACCOUNT), purple_value_new(PURPLE_TYPE_STRING)); + purple_signal_register(handle, "account-created", + purple_marshal_VOID__POINTER, NULL, 1, + purple_value_new(PURPLE_TYPE_SUBTYPE, PURPLE_SUBTYPE_ACCOUNT)); + + purple_signal_register(handle, "account-destroying", + purple_marshal_VOID__POINTER, NULL, 1, + purple_value_new(PURPLE_TYPE_SUBTYPE, PURPLE_SUBTYPE_ACCOUNT)); + purple_signal_register(handle, "account-added", purple_marshal_VOID__POINTER, NULL, 1, purple_value_new(PURPLE_TYPE_SUBTYPE, PURPLE_SUBTYPE_ACCOUNT)); @@ -2742,6 +2753,10 @@ purple_value_new(PURPLE_TYPE_SUBTYPE, PURPLE_SUBTYPE_STATUS)); + purple_signal_register(handle, "account-actions-changed", + purple_marshal_VOID__POINTER, NULL, 1, + purple_value_new(PURPLE_TYPE_SUBTYPE, PURPLE_SUBTYPE_ACCOUNT)); + purple_signal_register(handle, "account-alias-changed", purple_marshal_VOID__POINTER_POINTER, NULL, 2, purple_value_new(PURPLE_TYPE_SUBTYPE,