From: Andrea Zagli Date: Sat, 17 Jun 2017 09:55:00 +0000 (+0200) Subject: Test array in cgi. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=d74de3049c6b88f08bf687f418260837772040c5;p=zakform%2Ftests Test array in cgi. --- diff --git a/data/zakformtests/xml/cgi.xml b/data/zakformtests/xml/cgi.xml index d52e7ac..241d54c 100644 --- a/data/zakformtests/xml/cgi.xml +++ b/data/zakformtests/xml/cgi.xml @@ -104,6 +104,39 @@ and some tabs string + + array + string + + + + one + boolean + One + + + two + boolean + Two + + + three + boolean + Three + + + four + boolean + Four + TRUE + + + five + boolean + Five + + + submit FALSE diff --git a/src/cgi_ini.c b/src/cgi_ini.c index 6668ec4..9d0465d 100644 --- a/src/cgi_ini.c +++ b/src/cgi_ini.c @@ -72,6 +72,7 @@ main (int argc, char *argv[]) { if (zak_cgi_main_is_post (zakcgimain)) { + sleep(10); /* validating the form */ zak_form_cgi_form_bind (form); if (zak_form_form_is_valid (ZAK_FORM_FORM (form))) diff --git a/src/gtk_ini.c b/src/gtk_ini.c index 950a797..c6065ce 100644 --- a/src/gtk_ini.c +++ b/src/gtk_ini.c @@ -141,6 +141,12 @@ filters_toggled (GtkToggleButton *button, } } +G_MODULE_EXPORT void +array_signal_element_added (gpointer instance, GObject *element_added, gpointer user_data) +{ + zak_form_gtk_form_element_set_gtkbuilder ((ZakFormGtkFormElement *)element_added, builder); +} + int main (int argc, char *argv[]) {