g_ptr_array_add (priv->ar_elements, g_object_ref (element));
ret = TRUE;
+ if (ZAK_FORM_FORM_GET_CLASS (zakform)->element_added != NULL)
+ {
+ ZAK_FORM_FORM_GET_CLASS (zakform)->element_added (zakform, element);
+ }
+
return ret;
}
GObjectClass parent_class;
GPtrArray *(*get_elements) (ZakFormForm *zakform);
+
+ void (*element_added) (ZakFormForm *zakform, ZakFormElement *element);
};
"Value",
"Value",
"",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_DEFAULT_VALUE,
g_param_spec_string ("default-value",
"Visible",
"Visible",
TRUE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE));
g_object_class_install_property (object_class, PROP_EDITABLE,
g_param_spec_boolean ("editable",
"Editable",
"Editable",
TRUE,
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE));
}
static void
{
ZakFormElementPrivate *priv = zak_form_element_get_instance_private (zak_form_element);
+ priv->value = g_strdup ("");
+ priv->visible = TRUE;
+ priv->editable = TRUE;
priv->pa_filters = NULL;
priv->pa_validators = NULL;
priv->pa_messages = NULL;