summaryrefslogtreecommitdiff
path: root/libpurple/protocols
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2023-03-16 20:43:41 -0500
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2023-03-16 20:43:41 -0500
commit85e11fc7f835ef573fae937e5c7956725b81d1ff (patch)
tree088d22dd152389d75bc01a2bab39311514055db7 /libpurple/protocols
parent6ace7e4ef5e70584ecebe53c200d6c5732e48ed6 (diff)
downloadpidgin-85e11fc7f835ef573fae937e5c7956725b81d1ff.tar.gz
Add a PurpleRequestField:valid property and is_valid vfunc
* Add a `PurpleRequestField:valid` property and `is_valid` vfunc. * Add a `GDestroyNotify` parameter for the validator data, and document the callback. * Correct the property notification in `purple_request_field_bool_set_value`. Testing Done: Compiled and ran `ninja test` Reviewed at https://reviews.imfreedom.org/r/2346/
Diffstat (limited to 'libpurple/protocols')
-rw-r--r--libpurple/protocols/demo/purpledemoprotocolactions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpurple/protocols/demo/purpledemoprotocolactions.c b/libpurple/protocols/demo/purpledemoprotocolactions.c
index 7ab29b5014..097e3539f7 100644
--- a/libpurple/protocols/demo/purpledemoprotocolactions.c
+++ b/libpurple/protocols/demo/purpledemoprotocolactions.c
@@ -502,13 +502,13 @@ purple_demo_protocol_request_fields_activate(G_GNUC_UNUSED GSimpleAction *action
_("default"), FALSE);
purple_request_field_set_validator(field,
purple_request_field_alphanumeric_validator,
- NULL);
+ NULL, NULL);
purple_request_group_add_field(group, field);
field = purple_request_field_string_new("email", _("An email"),
_("me@example.com"), FALSE);
purple_request_field_set_validator(field,
purple_request_field_email_validator,
- NULL);
+ NULL, NULL);
purple_request_group_add_field(group, field);
field = purple_request_field_int_new("int", _("An integer"), 123, -42, 1337);
purple_request_group_add_field(group, field);