From: Andrea Zagli Date: Mon, 12 Jun 2017 15:26:16 +0000 (+0200) Subject: Make public function ZakFormElement::xml_parsing. X-Git-Tag: v0.1.0~1^2~1 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=e5c32e38d0021e3de689adf138a6be731bef1bce;p=zakform%2Fgtk Make public function ZakFormElement::xml_parsing. --- diff --git a/src/formelement.c b/src/formelement.c index 6897cc2..0306f87 100644 --- a/src/formelement.c +++ b/src/formelement.c @@ -411,8 +411,6 @@ zak_form_gtk_form_element_xml_parsing (ZakFormElement *element, xmlNode *xmlnode ZakFormGtkFormElementPrivate *priv = ZAK_FORM_GTK_FORM_ELEMENT_GET_PRIVATE ((ZakFormGtkFormElement *)element); - ZAK_FORM_ELEMENT_GET_CLASS (element)->xml_parsing (element, xmlnode); - cur = xmlnode->children; while (cur != NULL) { diff --git a/src/formelementcheck.c b/src/formelementcheck.c index f1599ac..6cacfe7 100644 --- a/src/formelementcheck.c +++ b/src/formelementcheck.c @@ -66,6 +66,8 @@ zak_form_gtk_form_element_check_class_init (ZakFormGtkFormElementCheckClass *kla elem_class->get_value = zak_form_gtk_form_element_check_get_value; elem_class->set_value = zak_form_gtk_form_element_check_set_value; + elem_class->xml_parsing = zak_form_gtk_form_element_check_xml_parsing; + g_type_class_add_private (object_class, sizeof (ZakFormGtkFormElementCheckPrivate)); } @@ -97,12 +99,10 @@ ZakFormGtkFormElement * @xmlnode: * */ -gboolean +void zak_form_gtk_form_element_check_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode) { ZAK_FORM_GTK_FORM_ELEMENT_CLASS (zak_form_gtk_form_element_check_parent_class)->xml_parsing (element, xmlnode); - - return TRUE; } /* PRIVATE */ diff --git a/src/formelementcheck.h b/src/formelementcheck.h index 0bca3f8..9f61264 100644 --- a/src/formelementcheck.h +++ b/src/formelementcheck.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Andrea Zagli + * Copyright (C) 2015-2017 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -53,7 +53,7 @@ GType zak_form_gtk_form_element_check_get_type (void); ZakFormGtkFormElement *zak_form_gtk_form_element_check_new (void); -gboolean zak_form_gtk_form_element_check_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode); +void zak_form_gtk_form_element_check_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode); G_END_DECLS diff --git a/src/formelementcombo.c b/src/formelementcombo.c index afd4f6b..2c77746 100644 --- a/src/formelementcombo.c +++ b/src/formelementcombo.c @@ -72,6 +72,8 @@ zak_form_gtk_form_element_combo_class_init (ZakFormGtkFormElementComboClass *kla elem_class->get_value = zak_form_gtk_form_element_combo_get_value; elem_class->set_value = zak_form_gtk_form_element_combo_set_value; + elem_class->xml_parsing = zak_form_gtk_form_element_combo_xml_parsing; + g_type_class_add_private (object_class, sizeof (ZakFormGtkFormElementComboPrivate)); g_object_class_install_property (object_class, PROP_COLUMN_FIELD, @@ -113,7 +115,7 @@ ZakFormGtkFormElement * @xmlnode: * */ -gboolean +void zak_form_gtk_form_element_combo_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode) { xmlNode *cur; @@ -130,8 +132,6 @@ zak_form_gtk_form_element_combo_xml_parsing (ZakFormElement *element, xmlNodePtr cur = cur->next; } - - return TRUE; } /** diff --git a/src/formelementcombo.h b/src/formelementcombo.h index c6093ae..c4a9b14 100644 --- a/src/formelementcombo.h +++ b/src/formelementcombo.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Andrea Zagli + * Copyright (C) 2016-2017 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -53,7 +53,7 @@ GType zak_form_gtk_form_element_combo_get_type (void); ZakFormGtkFormElement *zak_form_gtk_form_element_combo_new (void); -gboolean zak_form_gtk_form_element_combo_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode); +void zak_form_gtk_form_element_combo_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode); void zak_form_gtk_form_element_combo_set_column_field (ZakFormGtkFormElementCombo *element, guint column_field); guint zak_form_gtk_form_element_combo_get_column_field (ZakFormGtkFormElementCombo *element); diff --git a/src/formelemententry.c b/src/formelemententry.c index e6114b9..639f36a 100644 --- a/src/formelemententry.c +++ b/src/formelemententry.c @@ -66,6 +66,8 @@ zak_form_gtk_form_element_entry_class_init (ZakFormGtkFormElementEntryClass *kla elem_class->get_value = zak_form_gtk_form_element_entry_get_value; elem_class->set_value = zak_form_gtk_form_element_entry_set_value; + elem_class->xml_parsing = zak_form_gtk_form_element_entry_xml_parsing; + g_type_class_add_private (object_class, sizeof (ZakFormGtkFormElementEntryPrivate)); } @@ -97,12 +99,10 @@ ZakFormGtkFormElement * @xmlnode: * */ -gboolean +void zak_form_gtk_form_element_entry_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode) { ZAK_FORM_GTK_FORM_ELEMENT_CLASS (zak_form_gtk_form_element_entry_parent_class)->xml_parsing (element, xmlnode); - - return TRUE; } /* PRIVATE */ diff --git a/src/formelemententry.h b/src/formelemententry.h index 0b3484f..1868c3f 100644 --- a/src/formelemententry.h +++ b/src/formelemententry.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Andrea Zagli + * Copyright (C) 2015-2017 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -53,7 +53,7 @@ GType zak_form_gtk_form_element_entry_get_type (void); ZakFormGtkFormElement *zak_form_gtk_form_element_entry_new (void); -gboolean zak_form_gtk_form_element_entry_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode); +void zak_form_gtk_form_element_entry_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode); G_END_DECLS diff --git a/src/formelementlabel.c b/src/formelementlabel.c index 3eedb75..d9f0ab1 100644 --- a/src/formelementlabel.c +++ b/src/formelementlabel.c @@ -66,6 +66,8 @@ zak_form_gtk_form_element_label_class_init (ZakFormGtkFormElementLabelClass *kla elem_class->get_value = zak_form_gtk_form_element_label_get_value; elem_class->set_value = zak_form_gtk_form_element_label_set_value; + elem_class->xml_parsing = zak_form_gtk_form_element_label_xml_parsing; + g_type_class_add_private (object_class, sizeof (ZakFormGtkFormElementLabelPrivate)); } @@ -97,12 +99,10 @@ ZakFormGtkFormElement * @xmlnode: * */ -gboolean +void zak_form_gtk_form_element_label_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode) { ZAK_FORM_GTK_FORM_ELEMENT_CLASS (zak_form_gtk_form_element_label_parent_class)->xml_parsing (element, xmlnode); - - return TRUE; } /* PRIVATE */ diff --git a/src/formelementlabel.h b/src/formelementlabel.h index 102f879..497ddf8 100644 --- a/src/formelementlabel.h +++ b/src/formelementlabel.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Andrea Zagli + * Copyright (C) 2015-2017 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -53,7 +53,7 @@ GType zak_form_gtk_form_element_label_get_type (void); ZakFormGtkFormElement *zak_form_gtk_form_element_label_new (void); -gboolean zak_form_gtk_form_element_label_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode); +void zak_form_gtk_form_element_label_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode); G_END_DECLS diff --git a/src/formelementradio.c b/src/formelementradio.c index 52b4c00..b7707e1 100644 --- a/src/formelementradio.c +++ b/src/formelementradio.c @@ -72,6 +72,8 @@ zak_form_gtk_form_element_radio_class_init (ZakFormGtkFormElementRadioClass *kla elem_class->get_value = zak_form_gtk_form_element_radio_get_value; elem_class->set_value = zak_form_gtk_form_element_radio_set_value; + elem_class->xml_parsing = zak_form_gtk_form_element_radio_xml_parsing; + g_type_class_add_private (object_class, sizeof (ZakFormGtkFormElementRadioPrivate)); g_object_class_install_property (object_class, PROP_RETURN_VALUE, @@ -111,7 +113,7 @@ ZakFormGtkFormElement * @xmlnode: * */ -gboolean +void zak_form_gtk_form_element_radio_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode) { xmlNode *cur; @@ -128,8 +130,6 @@ zak_form_gtk_form_element_radio_xml_parsing (ZakFormElement *element, xmlNodePtr cur = cur->next; } - - return TRUE; } /** diff --git a/src/formelementradio.h b/src/formelementradio.h index ba65bc7..d425d6b 100644 --- a/src/formelementradio.h +++ b/src/formelementradio.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Andrea Zagli + * Copyright (C) 2015-2017 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -53,7 +53,7 @@ GType zak_form_gtk_form_element_radio_get_type (void); ZakFormGtkFormElement *zak_form_gtk_form_element_radio_new (void); -gboolean zak_form_gtk_form_element_radio_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode); +void zak_form_gtk_form_element_radio_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode); void zak_form_gtk_form_element_radio_set_return_value (ZakFormGtkFormElementRadio *element, const gchar *value); gchar *zak_form_gtk_form_element_radio_get_return_value (ZakFormGtkFormElementRadio *element); diff --git a/src/formelementspin.c b/src/formelementspin.c index 5cbf3f9..99f5337 100644 --- a/src/formelementspin.c +++ b/src/formelementspin.c @@ -66,6 +66,8 @@ zak_form_gtk_form_element_spin_class_init (ZakFormGtkFormElementSpinClass *klass elem_class->get_value = zak_form_gtk_form_element_spin_get_value; elem_class->set_value = zak_form_gtk_form_element_spin_set_value; + elem_class->xml_parsing = zak_form_gtk_form_element_spin_xml_parsing; + g_type_class_add_private (object_class, sizeof (ZakFormGtkFormElementSpinPrivate)); } @@ -97,12 +99,10 @@ ZakFormGtkFormElement * @xmlnode: * */ -gboolean +void zak_form_gtk_form_element_spin_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode) { ZAK_FORM_GTK_FORM_ELEMENT_CLASS (zak_form_gtk_form_element_spin_parent_class)->xml_parsing (element, xmlnode); - - return TRUE; } /* PRIVATE */ diff --git a/src/formelementspin.h b/src/formelementspin.h index 13c5c7a..6549c84 100644 --- a/src/formelementspin.h +++ b/src/formelementspin.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Andrea Zagli + * Copyright (C) 2015-2017 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -53,7 +53,7 @@ GType zak_form_gtk_form_element_spin_get_type (void); ZakFormGtkFormElement *zak_form_gtk_form_element_spin_new (void); -gboolean zak_form_gtk_form_element_spin_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode); +void zak_form_gtk_form_element_spin_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode); G_END_DECLS diff --git a/src/formelementtextview.c b/src/formelementtextview.c index 42b05af..767648d 100644 --- a/src/formelementtextview.c +++ b/src/formelementtextview.c @@ -66,6 +66,8 @@ zak_form_gtk_form_element_textview_class_init (ZakFormGtkFormElementTextviewClas elem_class->get_value = zak_form_gtk_form_element_textview_get_value; elem_class->set_value = zak_form_gtk_form_element_textview_set_value; + elem_class->xml_parsing = zak_form_gtk_form_element_textview_xml_parsing; + g_type_class_add_private (object_class, sizeof (ZakFormGtkFormElementTextviewPrivate)); } @@ -97,12 +99,10 @@ ZakFormGtkFormElement * @xmlnode: * */ -gboolean +void zak_form_gtk_form_element_textview_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode) { ZAK_FORM_GTK_FORM_ELEMENT_CLASS (zak_form_gtk_form_element_textview_parent_class)->xml_parsing (element, xmlnode); - - return TRUE; } /* PRIVATE */ diff --git a/src/formelementtextview.h b/src/formelementtextview.h index 8163880..c17f931 100644 --- a/src/formelementtextview.h +++ b/src/formelementtextview.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Andrea Zagli + * Copyright (C) 2015-2017 Andrea Zagli * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -53,7 +53,7 @@ GType zak_form_gtk_form_element_textview_get_type (void); ZakFormGtkFormElement *zak_form_gtk_form_element_textview_new (void); -gboolean zak_form_gtk_form_element_textview_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode); +void zak_form_gtk_form_element_textview_xml_parsing (ZakFormElement *element, xmlNodePtr xmlnode); G_END_DECLS