]> saetta.ns0.it Git - zakform/libzakform/commitdiff
No return value for ZakFormForm::set_element_value*_by_id.
authorAndrea Zagli <azagli@libero.it>
Tue, 15 Dec 2020 07:34:18 +0000 (08:34 +0100)
committerAndrea Zagli <azagli@libero.it>
Tue, 15 Dec 2020 07:34:18 +0000 (08:34 +0100)
src/form.c

index 3e019b10ba3cb6ee3b5fa4c571d1b0bd6600a43b..6c7848fbfccd2cc540ed2e9cd1f261c7093d217d 100644 (file)
@@ -659,7 +659,11 @@ zak_form_form_set_element_value_by_id (ZakFormForm *zakform, const gchar *id, co
        element = zak_form_form_get_element_by_id (zakform, id);
        if (element != NULL)
                {
-                       zak_form_element_set_value (element, value);
+                       return zak_form_element_set_value (element, value);
+               }
+       else
+               {
+                       return FALSE;
                }
 }
 
@@ -679,7 +683,11 @@ zak_form_form_set_element_value_gvalue_by_id (ZakFormForm *zakform, const gchar
        element = zak_form_form_get_element_by_id (zakform, id);
        if (element != NULL)
                {
-                       zak_form_element_set_value_gvalue (element, value);
+                       return zak_form_element_set_value_gvalue (element, value);
+               }
+       else
+               {
+                       return FALSE;
                }
 }