Migrated ZakFormElementFilter from interface to abstract class.
authorAndrea Zagli <azagli@libero.it>
Mon, 2 Nov 2015 21:08:27 +0000 (22:08 +0100)
committerAndrea Zagli <azagli@libero.it>
Mon, 2 Nov 2015 21:08:27 +0000 (22:08 +0100)
tests/form.c

index 50fd07d8ac5cfab2828542a1de8488ad27975c04..2cfad21b10843bd860be8d89db449572f1232354 100644 (file)
@@ -65,9 +65,9 @@ main (int argc, char *argv[])
        element = zak_cgi_form_element_text_new ("first", NULL);
        zak_cgi_form_element_set_label (element, "The Label for first", NULL);
        zak_form_element_add_filter (ZAK_FORM_ELEMENT (element),
-                                                                        ZAK_FORM_ELEMENT_IFILTER (zak_form_element_filter_trim_new ()));
+                                                                ZAK_FORM_ELEMENT_FILTER (zak_form_element_filter_trim_new ()));
        zak_form_element_add_validator (ZAK_FORM_ELEMENT (element),
-                                                                               ZAK_FORM_ELEMENT_VALIDATOR (zak_form_element_validator_regex_new ("^aaa$")));
+                                                                       ZAK_FORM_ELEMENT_VALIDATOR (zak_form_element_validator_regex_new ("^aaa$")));
        zak_form_form_add_element (ZAK_FORM_FORM (form), ZAK_FORM_ELEMENT (element));
 
        element = zak_cgi_form_element_check_new ("chk", NULL);