]> saetta.ns0.it Git - solipa/libsolipa/commitdiff
Mancava l'aggiunta al ZakForm in SolipaAllegato::add_to_zakformgtk.
authorAndrea Zagli <azagli@libero.it>
Wed, 6 Jan 2016 08:53:30 +0000 (09:53 +0100)
committerAndrea Zagli <azagli@libero.it>
Wed, 6 Jan 2016 08:53:30 +0000 (09:53 +0100)
src/allegato.c

index b486250ac89e4a209d372d9fb9552c2246cfa301..d80fd947696acaf878c38e3496476bd3757c2c64 100644 (file)
@@ -400,6 +400,7 @@ solipa_allegato_add_to_zakform (SolipaAllegato *solipa_allegato,
        zak_form_element_set_name (element, percorso_field);
        validator = zak_form_element_validator_notempty_new ();
        zak_form_element_add_validator (element, validator);
+       zak_form_form_add_element (form, element);
 
        if (data_field != NULL)
                {
@@ -410,6 +411,7 @@ solipa_allegato_add_to_zakform (SolipaAllegato *solipa_allegato,
                        validator = zak_form_element_validator_date_new ();
                        zak_form_element_validator_date_set_format (ZAK_FORM_ELEMENT_VALIDATOR_DATE (validator), "%d/%m/%Y %H.%M.%S");
                        zak_form_element_add_validator (element, validator);
+                       zak_form_form_add_element (form, element);
                }
 
        if (dimensione_field != NULL)
@@ -418,6 +420,7 @@ solipa_allegato_add_to_zakform (SolipaAllegato *solipa_allegato,
                        zak_form_gtk_form_element_set_widget_from_gtkbuilder (element, priv->gtkbuilder, "entry8");
                        zak_form_gtk_form_element_set_label (ZAK_FORM_GTK_FORM_ELEMENT (element), gtk_builder_get_object (priv->gtkbuilder, "label142"));
                        zak_form_element_set_name (element, dimensione_field);
+                       zak_form_form_add_element (form, element);
                }
 }