zak_form_cgi_form_element_check_class_init (ZakFormCgiFormElementCheckClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ ZakFormElementClass *form_elem_class = ZAK_FORM_ELEMENT_CLASS (klass);
ZakFormCgiFormElementClass *elem_class = ZAK_FORM_CGI_FORM_ELEMENT_CLASS (klass);
object_class->set_property = zak_form_cgi_form_element_check_set_property;
object_class->dispose = zak_form_cgi_form_element_check_dispose;
object_class->finalize = zak_form_cgi_form_element_check_finalize;
+ form_elem_class->xml_parsing = zak_form_cgi_form_element_check_xml_parsing;
+
elem_class->render = zak_form_cgi_form_element_check_render;
g_type_class_add_private (object_class, sizeof (ZakFormCgiFormElementCheckPrivate));
priv->in_line = in_line;
}
-gboolean
+void
zak_form_cgi_form_element_check_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode)
{
- gboolean ret;
-
gchar *id;
GHashTable *ht_attrs;
id = NULL;
- ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_check_parent_class)->xml_parsing (element, xmlnode);
-
ht_attrs = g_hash_table_new (g_str_hash, g_str_equal);
g_hash_table_replace (ht_attrs, "type", "checkbox");
ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_check_parent_class)->construct (ZAK_FORM_CGI_FORM_ELEMENT (element),
id,
ht_attrs);
- ret = TRUE;
}
- else
- {
- ret = FALSE;
- }
-
- return ret;
}
static gchar
gboolean zak_form_cgi_form_element_check_get_in_line (ZakFormCgiFormElementCheck *element);
void zak_form_cgi_form_element_check_set_in_line (ZakFormCgiFormElementCheck *element, gboolean in_line);
-gboolean zak_form_cgi_form_element_check_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
+void zak_form_cgi_form_element_check_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
G_END_DECLS
/*
- * Copyright (C) 2016 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2016-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
zak_form_cgi_form_element_email_class_init (ZakFormCgiFormElementEmailClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ ZakFormElementClass *form_elem_class = ZAK_FORM_ELEMENT_CLASS (klass);
ZakFormCgiFormElementClass *elem_class = ZAK_FORM_CGI_FORM_ELEMENT_CLASS (klass);
object_class->set_property = zak_form_cgi_form_element_email_set_property;
object_class->dispose = zak_form_cgi_form_element_email_dispose;
object_class->finalize = zak_form_cgi_form_element_email_finalize;
+ form_elem_class->xml_parsing = zak_form_cgi_form_element_email_xml_parsing;
+
elem_class->render = zak_form_cgi_form_element_email_render;
g_type_class_add_private (object_class, sizeof (ZakFormCgiFormElementEmailPrivate));
return zak_form_cgi_form_element_email;
}
-gboolean
+void
zak_form_cgi_form_element_email_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode)
{
- gboolean ret;
-
gchar *id;
GHashTable *ht_attrs;
id = NULL;
- ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_email_parent_class)->xml_parsing (element, xmlnode);
-
ht_attrs = g_hash_table_new (g_str_hash, g_str_equal);
g_hash_table_replace (ht_attrs, "type", "email");
ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_email_parent_class)->construct (ZAK_FORM_CGI_FORM_ELEMENT (element),
id,
ht_attrs);
- ret = TRUE;
}
- else
- {
- ret = FALSE;
- }
-
- return ret;
}
static gchar
/*
- * Copyright (C) 2016 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2016-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
ZakFormCgiFormElement *zak_form_cgi_form_element_email_new ();
ZakFormCgiFormElement *zak_form_cgi_form_element_email_new_attrs (const gchar *id, ...);
-gboolean zak_form_cgi_form_element_email_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
+void zak_form_cgi_form_element_email_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
G_END_DECLS
object_class->dispose = zak_form_cgi_form_element_file_dispose;
object_class->finalize = zak_form_cgi_form_element_file_finalize;
+ elem_class->xml_parsing = zak_form_cgi_form_element_file_xml_parsing;
+
cgi_elem_class->render = zak_form_cgi_form_element_file_render;
g_type_class_add_private (object_class, sizeof (ZakFormCgiFormElementFilePrivate));
return zak_form_cgi_form_element_file;
}
-gboolean
+void
zak_form_cgi_form_element_file_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode)
{
- gboolean ret;
-
gchar *id;
GHashTable *ht_attrs;
id = NULL;
- ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_file_parent_class)->xml_parsing (element, xmlnode);
-
ht_attrs = g_hash_table_new (g_str_hash, g_str_equal);
cur = xmlnode->children;
ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_file_parent_class)->construct (ZAK_FORM_CGI_FORM_ELEMENT (element),
id,
ht_attrs);
- ret = TRUE;
}
- else
- {
- ret = FALSE;
- }
-
- return ret;
}
void
ZakFormCgiFormElement *zak_form_cgi_form_element_file_new (void);
ZakFormCgiFormElement *zak_form_cgi_form_element_file_new_attrs (const gchar *id, ...);
-gboolean zak_form_cgi_form_element_file_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
+void zak_form_cgi_form_element_file_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
void zak_form_cgi_form_element_file_set_size_min (ZakFormElement *element, guint min);
guint zak_form_cgi_form_element_file_get_size_min (ZakFormElement *element);
/*
- * Copyright (C) 2015-2016 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
zak_form_cgi_form_element_hidden_class_init (ZakFormCgiFormElementHiddenClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ ZakFormElementClass *form_elem_class = ZAK_FORM_ELEMENT_CLASS (klass);
ZakFormCgiFormElementClass *elem_class = ZAK_FORM_CGI_FORM_ELEMENT_CLASS (klass);
object_class->set_property = zak_form_cgi_form_element_hidden_set_property;
object_class->dispose = zak_form_cgi_form_element_hidden_dispose;
object_class->finalize = zak_form_cgi_form_element_hidden_finalize;
+ form_elem_class->xml_parsing = zak_form_cgi_form_element_hidden_xml_parsing;
+
elem_class->render = zak_form_cgi_form_element_hidden_render;
g_type_class_add_private (object_class, sizeof (ZakFormCgiFormElementHiddenPrivate));
return zak_form_cgi_form_element_hidden;
}
-
-gboolean
+void
zak_form_cgi_form_element_hidden_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode)
{
- gboolean ret;
-
gchar *id;
GHashTable *ht_attrs;
id = NULL;
- ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_hidden_parent_class)->xml_parsing (element, xmlnode);
-
ht_attrs = g_hash_table_new (g_str_hash, g_str_equal);
g_hash_table_replace (ht_attrs, "type", "hidden");
ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_hidden_parent_class)->construct (ZAK_FORM_CGI_FORM_ELEMENT (element),
id,
ht_attrs);
- ret = TRUE;
}
- else
- {
- ret = FALSE;
- }
-
- return ret;
}
static gchar
/*
- * Copyright (C) 2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
ZakFormCgiFormElement *zak_form_cgi_form_element_hidden_new (void);
ZakFormCgiFormElement *zak_form_cgi_form_element_hidden_new_attrs (const gchar *id, ...);
-gboolean zak_form_cgi_form_element_hidden_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
+void zak_form_cgi_form_element_hidden_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
G_END_DECLS
/*
- * Copyright (C) 2015-2016 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
zak_form_cgi_form_element_password_class_init (ZakFormCgiFormElementPasswordClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ ZakFormElementClass *form_elem_class = ZAK_FORM_ELEMENT_CLASS (klass);
ZakFormCgiFormElementClass *elem_class = ZAK_FORM_CGI_FORM_ELEMENT_CLASS (klass);
object_class->set_property = zak_form_cgi_form_element_password_set_property;
object_class->dispose = zak_form_cgi_form_element_password_dispose;
object_class->finalize = zak_form_cgi_form_element_password_finalize;
+ form_elem_class->xml_parsing = zak_form_cgi_form_element_password_xml_parsing;
+
elem_class->render = zak_form_cgi_form_element_password_render;
g_type_class_add_private (object_class, sizeof (ZakFormCgiFormElementPasswordPrivate));
return zak_form_cgi_form_element_password;
}
-gboolean
+void
zak_form_cgi_form_element_password_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode)
{
- gboolean ret;
-
gchar *id;
GHashTable *ht_attrs;
id = NULL;
- ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_password_parent_class)->xml_parsing (element, xmlnode);
-
ht_attrs = g_hash_table_new (g_str_hash, g_str_equal);
g_hash_table_replace (ht_attrs, "type", "password");
ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_password_parent_class)->construct (ZAK_FORM_CGI_FORM_ELEMENT (element),
id,
ht_attrs);
- ret = TRUE;
}
- else
- {
- ret = FALSE;
- }
-
- return ret;
}
static gchar
/*
- * Copyright (C) 2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
ZakFormCgiFormElement *zak_form_cgi_form_element_password_new ();
ZakFormCgiFormElement *zak_form_cgi_form_element_password_new_attrs (const gchar *id, ...);
-gboolean zak_form_cgi_form_element_password_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
+void zak_form_cgi_form_element_password_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
G_END_DECLS
zak_form_cgi_form_element_radio_class_init (ZakFormCgiFormElementRadioClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ ZakFormElementClass *form_elem_class = ZAK_FORM_ELEMENT_CLASS (klass);
ZakFormCgiFormElementClass *elem_class = ZAK_FORM_CGI_FORM_ELEMENT_CLASS (klass);
object_class->set_property = zak_form_cgi_form_element_radio_set_property;
object_class->dispose = zak_form_cgi_form_element_radio_dispose;
object_class->finalize = zak_form_cgi_form_element_radio_finalize;
+ form_elem_class->xml_parsing = zak_form_cgi_form_element_radio_xml_parsing;
+
elem_class->render = zak_form_cgi_form_element_radio_render;
g_type_class_add_private (object_class, sizeof (ZakFormCgiFormElementRadioPrivate));
priv->in_line = in_line;
}
-gboolean
+void
zak_form_cgi_form_element_radio_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode)
{
- gboolean ret;
-
gchar *id;
GHashTable *ht_attrs;
id = NULL;
- ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_radio_parent_class)->xml_parsing (element, xmlnode);
-
ht_attrs = g_hash_table_new (g_str_hash, g_str_equal);
g_hash_table_replace (ht_attrs, "type", "radio");
ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_radio_parent_class)->construct (ZAK_FORM_CGI_FORM_ELEMENT (element),
id,
ht_attrs);
- ret = TRUE;
}
- else
- {
- ret = FALSE;
- }
-
- return ret;
}
static gchar
gboolean zak_form_cgi_form_element_radio_get_in_line (ZakFormCgiFormElementRadio *element);
void zak_form_cgi_form_element_radio_set_in_line (ZakFormCgiFormElementRadio *element, gboolean in_line);
-gboolean zak_form_cgi_form_element_radio_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
+void zak_form_cgi_form_element_radio_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
G_END_DECLS
zak_form_cgi_form_element_select_class_init (ZakFormCgiFormElementSelectClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ ZakFormElementClass *form_elem_class = ZAK_FORM_ELEMENT_CLASS (klass);
ZakFormCgiFormElementClass *elem_class = ZAK_FORM_CGI_FORM_ELEMENT_CLASS (klass);
object_class->set_property = zak_form_cgi_form_element_select_set_property;
object_class->dispose = zak_form_cgi_form_element_select_dispose;
object_class->finalize = zak_form_cgi_form_element_select_finalize;
+ form_elem_class->xml_parsing = zak_form_cgi_form_element_select_xml_parsing;
+
elem_class->render = zak_form_cgi_form_element_select_render;
g_type_class_add_private (object_class, sizeof (ZakFormCgiFormElementSelectPrivate));
g_hash_table_replace (priv->ht_options, g_strdup (value), ht_attrs);
}
-gboolean
+void
zak_form_cgi_form_element_select_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode)
{
- gboolean ret;
-
gchar *id;
GHashTable *ht_attrs;
id = NULL;
- ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_select_parent_class)->xml_parsing (element, xmlnode);
-
ht_attrs = g_hash_table_new (g_str_hash, g_str_equal);
cur = xmlnode->children;
ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_select_parent_class)->construct (ZAK_FORM_CGI_FORM_ELEMENT (element),
id,
ht_attrs);
- ret = TRUE;
}
- else
- {
- ret = FALSE;
- }
-
- return ret;
}
static gchar
/*
- * Copyright (C) 2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
void zak_form_cgi_form_element_select_add_option (ZakFormCgiFormElementSelect *element, const gchar *value, const gchar *content, ...);
-gboolean zak_form_cgi_form_element_select_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
+void zak_form_cgi_form_element_select_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
G_END_DECLS
/*
- * Copyright (C) 2015-2016 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
zak_form_cgi_form_element_string_class_init (ZakFormCgiFormElementStringClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ ZakFormElementClass *form_elem_class = ZAK_FORM_ELEMENT_CLASS (klass);
ZakFormCgiFormElementClass *elem_class = ZAK_FORM_CGI_FORM_ELEMENT_CLASS (klass);
object_class->set_property = zak_form_cgi_form_element_string_set_property;
object_class->dispose = zak_form_cgi_form_element_string_dispose;
object_class->finalize = zak_form_cgi_form_element_string_finalize;
+ form_elem_class->xml_parsing = zak_form_cgi_form_element_string_xml_parsing;
+
elem_class->render = zak_form_cgi_form_element_string_render;
//elem_class->is_valid = zak_form_cgi_form_element_string_is_valid;
return zak_form_cgi_form_element_string;
}
-gboolean
+void
zak_form_cgi_form_element_string_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode)
{
- gboolean ret;
-
xmlNode *cur;
ZakFormCgiFormElementStringPrivate *priv;
- ret = FALSE;
-
- ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_string_parent_class)->xml_parsing (element, xmlnode);
-
cur = xmlnode->children;
while (cur != NULL)
{
{
priv = ZAK_FORM_CGI_FORM_ELEMENT_STRING_GET_PRIVATE (ZAK_FORM_CGI_FORM_ELEMENT_STRING (element));
priv->str = g_strdup ((gchar *)xmlNodeGetContent (cur));
- ret = TRUE;
break;
}
cur = cur->next;
}
-
- return ret;
}
static gchar
/*
- * Copyright (C) 2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
ZakFormCgiFormElement *zak_form_cgi_form_element_string_new (void);
ZakFormCgiFormElement *zak_form_cgi_form_element_string_new_attrs (const gchar *str);
-gboolean zak_form_cgi_form_element_string_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
+void zak_form_cgi_form_element_string_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
G_END_DECLS
/*
- * Copyright (C) 2015-2016 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
zak_form_cgi_form_element_submit_class_init (ZakFormCgiFormElementSubmitClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ ZakFormElementClass *form_elem_class = ZAK_FORM_ELEMENT_CLASS (klass);
ZakFormCgiFormElementClass *elem_class = ZAK_FORM_CGI_FORM_ELEMENT_CLASS (klass);
object_class->set_property = zak_form_cgi_form_element_submit_set_property;
object_class->dispose = zak_form_cgi_form_element_submit_dispose;
object_class->finalize = zak_form_cgi_form_element_submit_finalize;
+ form_elem_class->xml_parsing = zak_form_cgi_form_element_submit_xml_parsing;
+
elem_class->render = zak_form_cgi_form_element_submit_render;
g_type_class_add_private (object_class, sizeof (ZakFormCgiFormElementSubmitPrivate));
return zak_form_cgi_form_element_submit;
}
-gboolean
+void
zak_form_cgi_form_element_submit_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode)
{
- gboolean ret;
-
gchar *id;
GHashTable *ht_attrs;
id = NULL;
- ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_submit_parent_class)->xml_parsing (element, xmlnode);
-
ht_attrs = g_hash_table_new (g_str_hash, g_str_equal);
cur = xmlnode->children;
ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_submit_parent_class)->construct (ZAK_FORM_CGI_FORM_ELEMENT (element),
id,
ht_attrs);
- ret = TRUE;
- }
- else
- {
- ret = FALSE;
}
-
- return ret;
}
static gchar
/*
- * Copyright (C) 2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
ZakFormCgiFormElement *zak_form_cgi_form_element_submit_new (void);
ZakFormCgiFormElement *zak_form_cgi_form_element_submit_new_attrs (const gchar *id, ...);
-gboolean zak_form_cgi_form_element_submit_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
+void zak_form_cgi_form_element_submit_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
G_END_DECLS
/*
- * Copyright (C) 2015-2016 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
zak_form_cgi_form_element_text_class_init (ZakFormCgiFormElementTextClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ ZakFormElementClass *form_elem_class = ZAK_FORM_ELEMENT_CLASS (klass);
ZakFormCgiFormElementClass *elem_class = ZAK_FORM_CGI_FORM_ELEMENT_CLASS (klass);
object_class->set_property = zak_form_cgi_form_element_text_set_property;
object_class->dispose = zak_form_cgi_form_element_text_dispose;
object_class->finalize = zak_form_cgi_form_element_text_finalize;
+ form_elem_class->xml_parsing = zak_form_cgi_form_element_text_xml_parsing;
+
elem_class->render = zak_form_cgi_form_element_text_render;
g_type_class_add_private (object_class, sizeof (ZakFormCgiFormElementTextPrivate));
return zak_form_cgi_form_element_text;
}
-gboolean
+void
zak_form_cgi_form_element_text_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode)
{
- gboolean ret;
-
gchar *id;
GHashTable *ht_attrs;
id = NULL;
- ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_text_parent_class)->xml_parsing (element, xmlnode);
-
ht_attrs = g_hash_table_new (g_str_hash, g_str_equal);
cur = xmlnode->children;
ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_text_parent_class)->construct (ZAK_FORM_CGI_FORM_ELEMENT (element),
id,
ht_attrs);
- ret = TRUE;
}
- else
- {
- ret = FALSE;
- }
-
- return ret;
}
static gchar
/*
- * Copyright (C) 2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
ZakFormCgiFormElement *zak_form_cgi_form_element_text_new (void);
ZakFormCgiFormElement *zak_form_cgi_form_element_text_new_attrs (const gchar *id, ...);
-gboolean zak_form_cgi_form_element_text_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
+void zak_form_cgi_form_element_text_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
G_END_DECLS
/*
- * Copyright (C) 2015-2016 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
zak_form_cgi_form_element_text_area_class_init (ZakFormCgiFormElementTextAreaClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ ZakFormElementClass *form_elem_class = ZAK_FORM_ELEMENT_CLASS (klass);
ZakFormCgiFormElementClass *elem_class = ZAK_FORM_CGI_FORM_ELEMENT_CLASS (klass);
object_class->set_property = zak_form_cgi_form_element_text_area_set_property;
object_class->dispose = zak_form_cgi_form_element_text_area_dispose;
object_class->finalize = zak_form_cgi_form_element_text_area_finalize;
+ form_elem_class->xml_parsing = zak_form_cgi_form_element_text_area_xml_parsing;
+
elem_class->render = zak_form_cgi_form_element_text_area_render;
g_type_class_add_private (object_class, sizeof (ZakFormCgiFormElementTextAreaPrivate));
return zak_form_cgi_form_element_text_area;
}
-gboolean
+void
zak_form_cgi_form_element_text_area_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode)
{
- gboolean ret;
-
gchar *id;
GHashTable *ht_attrs;
id = NULL;
- ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_text_area_parent_class)->xml_parsing (element, xmlnode);
-
ht_attrs = g_hash_table_new (g_str_hash, g_str_equal);
cur = xmlnode->children;
ZAK_FORM_CGI_FORM_ELEMENT_CLASS (zak_form_cgi_form_element_text_area_parent_class)->construct (ZAK_FORM_CGI_FORM_ELEMENT (element),
id,
ht_attrs);
- ret = TRUE;
}
- else
- {
- ret = FALSE;
- }
-
- return ret;
}
static gchar
/*
- * Copyright (C) 2015 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
ZakFormCgiFormElement *zak_form_cgi_form_element_text_area_new (void);
ZakFormCgiFormElement *zak_form_cgi_form_element_text_area_new_attrs (const gchar *id, ...);
-gboolean zak_form_cgi_form_element_text_area_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
+void zak_form_cgi_form_element_text_area_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode);
G_END_DECLS