Renamed function ZakFormForm::get_form_element_validator.
authorAndrea Zagli <azagli@libero.it>
Mon, 12 Jun 2017 13:33:17 +0000 (15:33 +0200)
committerAndrea Zagli <azagli@libero.it>
Mon, 12 Jun 2017 13:33:17 +0000 (15:33 +0200)
src/form.c
src/form.h
src/formvalidatorcomposite.c

index bdf210409e2074c96c88f4501c2bfb04f16ec37e..72e5dc6075644bfadb4ef782b9b952552b73b5f0 100644 (file)
@@ -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;
 }
index 55e7991aad6bf1ca95056d245f507807ebc9c22e..c2542e6c0ebe36c620e0df88c47c44ddaab9e9c8 100644 (file)
@@ -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);
index e5bdbe4d4d3b28231e3cdb35d8d7bcbe0f9a6ea3..79608f6141cceb072c6400adc8d2206535e2b567 100644 (file)
@@ -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.",