From 6bc11b83f219743a60e1740d4340c409a3e206f8 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 5 Dec 2015 11:37:56 +0100 Subject: [PATCH] Published method ZakFormElement::get_messages. --- src/formelement.c | 24 +++++++++++++----------- src/formelement.h | 4 +--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/formelement.c b/src/formelement.c index 9ce119f..ae41842 100644 --- a/src/formelement.c +++ b/src/formelement.c @@ -58,8 +58,6 @@ static void zak_form_element_finalize (GObject *gobject); static void zak_form_element_xml_parsing (ZakFormElement *element, xmlNode *xmlnode); -static GPtrArray *zak_form_element_get_messages (ZakFormElement *element); - typedef struct { gchar *name; @@ -91,7 +89,6 @@ zak_form_element_class_init (ZakFormElementClass *class) object_class->finalize = zak_form_element_finalize; class->xml_parsing = zak_form_element_xml_parsing; - class->get_messages = zak_form_element_get_messages; g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string ("name", @@ -753,6 +750,19 @@ zak_form_element_is_valid (ZakFormElement *element) return ret; } +/** + * zak_form_element_get_messages: + * @element: + * + */ +GPtrArray +*zak_form_element_get_messages (ZakFormElement *element) +{ + ZakFormElementPrivate *priv = zak_form_element_get_instance_private (element); + + return priv->pa_messages; +} + /* PRIVATE */ static void zak_form_element_set_property (GObject *object, @@ -936,11 +946,3 @@ zak_form_element_xml_parsing (ZakFormElement *element, xmlNode *xmlnode) cur = cur->next; } } - -static GPtrArray -*zak_form_element_get_messages (ZakFormElement *element) -{ - ZakFormElementPrivate *priv = zak_form_element_get_instance_private (element); - - return priv->pa_messages; -} diff --git a/src/formelement.h b/src/formelement.h index b38a45d..ebfb9f1 100644 --- a/src/formelement.h +++ b/src/formelement.h @@ -48,11 +48,8 @@ struct _ZakFormElementClass void (*set_editable) (ZakFormElement *element, gboolean editable); gboolean (*get_editable) (ZakFormElement *element); - - GPtrArray *(*get_messages) (ZakFormElement *element); }; - void zak_form_element_set_name (ZakFormElement *element, const gchar *name); gchar *zak_form_element_get_name (ZakFormElement *element); @@ -92,6 +89,7 @@ void zak_form_element_filter (ZakFormElement *element); void zak_form_element_add_validator (ZakFormElement *element, ZakFormElementValidator *validator); gboolean zak_form_element_is_valid (ZakFormElement *element); +GPtrArray *zak_form_element_get_messages (ZakFormElement *element); G_END_DECLS -- 2.49.0