{
ZakFormFormPrivate *priv = zak_form_form_get_instance_private (zak_form_form);
- priv->ar_elems = NULL;
+ priv->ar_elements = NULL;
}
/**
return ret;
}
+/**
+ * zak_form_form_is_valid:
+ * @zakform:
+ *
+ * Returns:
+ */
+gboolean
+zak_form_form_is_valid (ZakFormForm *zakform)
+{
+ guint i;
+
+ gboolean ret;
+
+ ZakFormFormPrivate *priv;
+
+ priv = zak_form_form_get_instance_private (zakform);
+
+ ret = TRUE;
+
+ for (i = 0; i < priv->ar_elements->len; i++)
+ {
+ ZakFormElement *element = (ZakFormElement *)g_ptr_array_index (priv->ar_elements, i);
+ if (!zak_form_element_is_valid (element))
+ {
+ ret = FALSE;
+ }
+ }
+
+ return ret;
+}
+
+
/* PRIVATE */
static void
zak_form_form_set_property (GObject *object,
gboolean zak_form_form_add_element (ZakFormForm *zakform, ZakFormElement *element);
+gboolean zak_form_form_is_valid (ZakFormForm *zakform);
+
G_END_DECLS