summaryrefslogtreecommitdiff
path: root/libpurple/accounts.c
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2023-02-08 08:59:47 -0600
committerGary Kramlich <grim@reaperworld.com>2023-02-08 08:59:47 -0600
commit6a672d7b1bbb74335a4ae13e39c17570cd094359 (patch)
tree65f788a7e5fc9273f43ca01a30d5254c32998542 /libpurple/accounts.c
parent04f864380fc52d9fed28abfb92281e39be66de6d (diff)
downloadpidgin-6a672d7b1bbb74335a4ae13e39c17570cd094359.tar.gz
Export Account::error
I can't think of a good reason why we shouldn't expose the error property on Accounts. But I would like to be able to set the error from the UI when there is an error in the settings for example. Testing Done: Built the docs, ran the tests, used the prune connection action in the demo protocol plugin and verified everything was still working. Reviewed at https://reviews.imfreedom.org/r/2216/
Diffstat (limited to 'libpurple/accounts.c')
-rw-r--r--libpurple/accounts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpurple/accounts.c b/libpurple/accounts.c
index dbd61e05e2..a51f952015 100644
--- a/libpurple/accounts.c
+++ b/libpurple/accounts.c
@@ -298,7 +298,7 @@ parse_current_error(PurpleXmlNode *node, PurpleAccount *account)
(description != NULL) ? description : "");
g_free(description);
- _purple_account_set_current_error(account, current_error);
+ purple_account_set_error(account, current_error);
}
static PurpleAccount *
@@ -635,7 +635,7 @@ connection_error_cb(PurpleConnection *gc,
g_return_if_fail(account != NULL);
err = purple_connection_error_info_new(type, description);
- _purple_account_set_current_error(account, err);
+ purple_account_set_error(account, err);
}
void