comparison 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
comparison
equal deleted inserted replaced
32577:a70f05468fb4 32578:978dd52814c7
952 g_free, (GDestroyNotify)g_hash_table_destroy); 952 g_free, (GDestroyNotify)g_hash_table_destroy);
953 account->system_log = NULL; 953 account->system_log = NULL;
954 /* 0 is not a valid privacy setting */ 954 /* 0 is not a valid privacy setting */
955 account->perm_deny = PURPLE_PRIVACY_ALLOW_ALL; 955 account->perm_deny = PURPLE_PRIVACY_ALLOW_ALL;
956 956
957 purple_signal_emit(purple_accounts_get_handle(), "account-created", account);
958
957 prpl = purple_find_prpl(protocol_id); 959 prpl = purple_find_prpl(protocol_id);
958 960
959 if (prpl == NULL) 961 if (prpl == NULL)
960 return account; 962 return account;
961 963
985 GList *l; 987 GList *l;
986 988
987 g_return_if_fail(account != NULL); 989 g_return_if_fail(account != NULL);
988 990
989 purple_debug_info("account", "Destroying account %p\n", account); 991 purple_debug_info("account", "Destroying account %p\n", account);
992 purple_signal_emit(purple_accounts_get_handle(), "account-destroying", account);
990 993
991 for (l = purple_get_conversations(); l != NULL; l = l->next) 994 for (l = purple_get_conversations(); l != NULL; l = l->next)
992 { 995 {
993 PurpleConversation *conv = (PurpleConversation *)l->data; 996 PurpleConversation *conv = (PurpleConversation *)l->data;
994 997
2723 purple_marshal_VOID__POINTER_POINTER, NULL, 2, 2726 purple_marshal_VOID__POINTER_POINTER, NULL, 2,
2724 purple_value_new(PURPLE_TYPE_SUBTYPE, 2727 purple_value_new(PURPLE_TYPE_SUBTYPE,
2725 PURPLE_SUBTYPE_ACCOUNT), 2728 PURPLE_SUBTYPE_ACCOUNT),
2726 purple_value_new(PURPLE_TYPE_STRING)); 2729 purple_value_new(PURPLE_TYPE_STRING));
2727 2730
2731 purple_signal_register(handle, "account-created",
2732 purple_marshal_VOID__POINTER, NULL, 1,
2733 purple_value_new(PURPLE_TYPE_SUBTYPE, PURPLE_SUBTYPE_ACCOUNT));
2734
2735 purple_signal_register(handle, "account-destroying",
2736 purple_marshal_VOID__POINTER, NULL, 1,
2737 purple_value_new(PURPLE_TYPE_SUBTYPE, PURPLE_SUBTYPE_ACCOUNT));
2738
2728 purple_signal_register(handle, "account-added", 2739 purple_signal_register(handle, "account-added",
2729 purple_marshal_VOID__POINTER, NULL, 1, 2740 purple_marshal_VOID__POINTER, NULL, 1,
2730 purple_value_new(PURPLE_TYPE_SUBTYPE, PURPLE_SUBTYPE_ACCOUNT)); 2741 purple_value_new(PURPLE_TYPE_SUBTYPE, PURPLE_SUBTYPE_ACCOUNT));
2731 2742
2732 purple_signal_register(handle, "account-removed", 2743 purple_signal_register(handle, "account-removed",
2740 purple_value_new(PURPLE_TYPE_SUBTYPE, 2751 purple_value_new(PURPLE_TYPE_SUBTYPE,
2741 PURPLE_SUBTYPE_STATUS), 2752 PURPLE_SUBTYPE_STATUS),
2742 purple_value_new(PURPLE_TYPE_SUBTYPE, 2753 purple_value_new(PURPLE_TYPE_SUBTYPE,
2743 PURPLE_SUBTYPE_STATUS)); 2754 PURPLE_SUBTYPE_STATUS));
2744 2755
2756 purple_signal_register(handle, "account-actions-changed",
2757 purple_marshal_VOID__POINTER, NULL, 1,
2758 purple_value_new(PURPLE_TYPE_SUBTYPE, PURPLE_SUBTYPE_ACCOUNT));
2759
2745 purple_signal_register(handle, "account-alias-changed", 2760 purple_signal_register(handle, "account-alias-changed",
2746 purple_marshal_VOID__POINTER_POINTER, NULL, 2, 2761 purple_marshal_VOID__POINTER_POINTER, NULL, 2,
2747 purple_value_new(PURPLE_TYPE_SUBTYPE, 2762 purple_value_new(PURPLE_TYPE_SUBTYPE,
2748 PURPLE_SUBTYPE_ACCOUNT), 2763 PURPLE_SUBTYPE_ACCOUNT),
2749 purple_value_new(PURPLE_TYPE_STRING)); 2764 purple_value_new(PURPLE_TYPE_STRING));