From 9f615e72bf596f1c193cf32c8741e9e636f92759 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Mon, 12 Jun 2017 15:33:17 +0200 Subject: [PATCH] Renamed function ZakFormForm::get_form_element_validator. --- src/form.c | 10 +++++----- src/form.h | 2 +- src/formvalidatorcomposite.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/form.c b/src/form.c index bdf2104..72e5dc6 100644 --- a/src/form.c +++ b/src/form.c @@ -247,7 +247,7 @@ zak_form_form_element_xml_parsing (ZakFormForm *zakform, ZakFormElement *element { type = (gchar *)xmlGetProp (xnode, (const xmlChar *)"type"); - validator_constructor = zak_form_get_form_element_validator (zakform, type); + validator_constructor = zak_form_form_get_form_element_validator (zakform, type); if (validator_constructor != NULL) { validator = validator_constructor (); @@ -286,7 +286,7 @@ zak_form_form_element_xml_parsing (ZakFormForm *zakform, ZakFormElement *element * Returns: the constructor (_new) function for the module. */ static gpointer -_zak_form_get_module_new (ZakFormForm *zakform, const gchar *namespace) +_zak_form_form_get_module_new (ZakFormForm *zakform, const gchar *namespace) { gpointer ret; @@ -310,20 +310,20 @@ _zak_form_get_module_new (ZakFormForm *zakform, const gchar *namespace) } /** - * zak_form_get_form_element_validator: + * zak_form_form_get_form_element_validator: * @zakform: * @namespace: * * Returns: */ ZakFormElementValidatorConstructorFunc -zak_form_get_form_element_validator (ZakFormForm *zakform, const gchar *namespace) +zak_form_form_get_form_element_validator (ZakFormForm *zakform, const gchar *namespace) { ZakFormElementValidatorConstructorFunc validator_constructor; g_return_val_if_fail (ZAK_FORM_IS_FORM (zakform), NULL); - validator_constructor = (ZakFormElementValidatorConstructorFunc)_zak_form_get_module_new (zakform, namespace); + validator_constructor = (ZakFormElementValidatorConstructorFunc)_zak_form_form_get_module_new (zakform, namespace); return validator_constructor; } diff --git a/src/form.h b/src/form.h index 55e7991..c2542e6 100644 --- a/src/form.h +++ b/src/form.h @@ -46,7 +46,7 @@ struct _ZakFormFormClass typedef ZakFormElementValidator *(* ZakFormElementValidatorConstructorFunc) (void); -ZakFormElementValidatorConstructorFunc zak_form_get_form_element_validator (ZakFormForm *zakform, const gchar *namespace); +ZakFormElementValidatorConstructorFunc zak_form_form_get_form_element_validator (ZakFormForm *zakform, const gchar *namespace); gboolean zak_form_form_load_from_xml (ZakFormForm *zakform, xmlDoc *xmldoc); gboolean zak_form_form_load_from_file (ZakFormForm *zakform, const gchar *filename); diff --git a/src/formvalidatorcomposite.c b/src/formvalidatorcomposite.c index e5bdbe4..79608f6 100644 --- a/src/formvalidatorcomposite.c +++ b/src/formvalidatorcomposite.c @@ -154,7 +154,7 @@ _zak_form_validator_composite_xml_parsing (ZakFormValidator *validator, xmlNode continue; } - validator_constructor = zak_form_get_form_element_validator (form, (gchar *)xmlGetProp (cur, (xmlChar *)"validator")); + validator_constructor = zak_form_form_get_form_element_validator (form, (gchar *)xmlGetProp (cur, (xmlChar *)"validator")); if (validator_constructor == NULL) { g_warning ("Validator «%s» not found.", @@ -238,7 +238,7 @@ _zak_form_validator_composite_xml_parsing (ZakFormValidator *validator, xmlNode n = (Node *)g_new0 (Node, 1); - validator_constructor = zak_form_get_form_element_validator (form, (gchar *)xmlGetProp (cur, (xmlChar *)"type")); + validator_constructor = zak_form_form_get_form_element_validator (form, (gchar *)xmlGetProp (cur, (xmlChar *)"type")); if (validator_constructor == NULL) { g_warning ("Validator «%s» not found.", -- 2.49.0