17 files changed, 90 insertions(+), 123 deletions(-)
diff --git a/src/form.c b/src/form.c
-index 7fd21a0..ff60b3c 100644
+index 7358f1c..435cb9f 100644
--- a/src/form.c
+++ b/src/form.c
@@ -51,6 +51,8 @@ static void zak_form_form_get_property (GObject *object,
g_ptr_array_add (priv->ar_elements, g_object_ref (element));
ret = TRUE;
-@@ -321,7 +325,7 @@ ZakFormElement
+@@ -390,7 +394,7 @@ ZakFormElement
guint i;
ret = NULL;
for (i = 0; i < priv->ar_elements->len; i++)
-@@ -396,7 +400,7 @@ zak_form_form_add_validator (ZakFormForm *zakform, ZakFormValidator *validator)
+@@ -498,7 +502,7 @@ zak_form_form_add_validator (ZakFormForm *zakform, ZakFormValidator *validator)
ZakFormFormPrivate *priv;
g_ptr_array_add (priv->ar_validators, g_object_ref (validator));
ret = TRUE;
-@@ -492,7 +496,7 @@ zak_form_form_clear (ZakFormForm *zakform)
+@@ -594,7 +598,7 @@ zak_form_form_clear (ZakFormForm *zakform)
g_return_if_fail (ZAK_FORM_IS_FORM (zakform));
for (i = 0; i < priv->ar_elements->len; i++)
{
-@@ -516,7 +520,7 @@ zak_form_form_set_as_original (ZakFormForm *zakform)
+@@ -618,7 +622,7 @@ zak_form_form_set_as_original (ZakFormForm *zakform)
g_return_if_fail (ZAK_FORM_IS_FORM (zakform));
for (i = 0; i < priv->ar_elements->len; i++)
{
-@@ -541,7 +545,7 @@ zak_form_form_set_editable (ZakFormForm *zakform, gboolean editable)
+@@ -643,7 +647,7 @@ zak_form_form_set_editable (ZakFormForm *zakform, gboolean editable)
g_return_if_fail (ZAK_FORM_IS_FORM (zakform));
for (i = 0; i < priv->ar_elements->len; i++)
{
-@@ -568,7 +572,7 @@ zak_form_form_is_valid (ZakFormForm *zakform)
+@@ -670,7 +674,7 @@ zak_form_form_is_valid (ZakFormForm *zakform)
GPtrArray *ar_messages;
ret = TRUE;
-@@ -605,7 +609,7 @@ GPtrArray
+@@ -707,7 +711,7 @@ GPtrArray
{
ZakFormFormPrivate *priv;
return priv->ar_messages;
}
-@@ -625,7 +629,7 @@ zak_form_form_is_changed (ZakFormForm *zakform)
+@@ -727,7 +731,7 @@ zak_form_form_is_changed (ZakFormForm *zakform)
ZakFormFormPrivate *priv;
ret = FALSE;
-@@ -653,7 +657,7 @@ zak_form_form_load (ZakFormForm *zakform, ZakFormIProvider *provider)
+@@ -755,7 +759,7 @@ zak_form_form_load (ZakFormForm *zakform, ZakFormIProvider *provider)
{
ZakFormFormPrivate *priv;
return zak_form_iprovider_load (provider, priv->ar_elements);
}
-@@ -669,7 +673,7 @@ zak_form_form_insert (ZakFormForm *zakform, ZakFormIProvider *provider)
+@@ -771,7 +775,7 @@ zak_form_form_insert (ZakFormForm *zakform, ZakFormIProvider *provider)
{
ZakFormFormPrivate *priv;
return zak_form_iprovider_insert (provider, priv->ar_elements);
}
-@@ -685,7 +689,7 @@ zak_form_form_update (ZakFormForm *zakform, ZakFormIProvider *provider)
+@@ -787,7 +791,7 @@ zak_form_form_update (ZakFormForm *zakform, ZakFormIProvider *provider)
{
ZakFormFormPrivate *priv;
return zak_form_iprovider_update (provider, priv->ar_elements);
}
-@@ -701,7 +705,7 @@ zak_form_form_delete (ZakFormForm *zakform, ZakFormIProvider *provider)
+@@ -803,7 +807,7 @@ zak_form_form_delete (ZakFormForm *zakform, ZakFormIProvider *provider)
{
ZakFormFormPrivate *priv;
return zak_form_iprovider_delete (provider, priv->ar_elements);
}
-@@ -714,7 +718,7 @@ zak_form_form_set_property (GObject *object,
+@@ -816,7 +820,7 @@ zak_form_form_set_property (GObject *object,
GParamSpec *pspec)
{
ZakFormForm *zak_form_form = (ZakFormForm *)object;
switch (property_id)
{
-@@ -731,7 +735,7 @@ zak_form_form_get_property (GObject *object,
+@@ -833,7 +837,7 @@ zak_form_form_get_property (GObject *object,
GParamSpec *pspec)
{
ZakFormForm *zak_form_form = (ZakFormForm *)object;
switch (property_id)
{
-@@ -745,7 +749,7 @@ static void
+@@ -847,7 +851,7 @@ static void
zak_form_form_dispose (GObject *gobject)
{
ZakFormForm *zak_form_form = (ZakFormForm *)gobject;
-@@ -757,7 +761,7 @@ static void
+@@ -859,7 +863,7 @@ static void
zak_form_form_finalize (GObject *gobject)
{
ZakFormForm *zak_form_form = (ZakFormForm *)gobject;
#define ZAK_FORM_IS_ELEMENT_VALIDATOR_NOTEMPTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_NOTEMPTY))
#define ZAK_FORM_IS_ELEMENT_VALIDATOR_NOTEMPTY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_NOTEMPTY))
diff --git a/src/formelementvalidatorregex.c b/src/formelementvalidatorregex.c
-index 8614ebf..934426e 100644
+index ddce8a5..a280fbe 100644
--- a/src/formelementvalidatorregex.c
+++ b/src/formelementvalidatorregex.c
@@ -47,13 +47,6 @@ static void zak_form_element_validator_regex_finalize (GObject *gobject);
5 files changed, 22 insertions(+), 20 deletions(-)
diff --git a/src/form.c b/src/form.c
-index ed889e8..b5917b4 100644
+index ce8e138..35ad4c5 100644
--- a/src/form.c
+++ b/src/form.c
-@@ -351,7 +351,7 @@ ZakFormElement
+@@ -453,7 +453,7 @@ zak_form_form_get_element_idx_by_id (ZakFormForm *zakform, const gchar *id)
GPtrArray
*zak_form_form_get_elements (ZakFormForm *zakform)
{
return priv->ar_elements;
}
-@@ -371,7 +371,7 @@ GPtrArray
+@@ -473,7 +473,7 @@ GPtrArray
guint i;
ar = g_ptr_array_new ();
for (i = 0; i < priv->ar_elements->len; i++)
-@@ -447,7 +447,7 @@ ZakFormValidator
+@@ -549,7 +549,7 @@ ZakFormValidator
GPtrArray
*zak_form_form_get_validators (ZakFormForm *zakform)
{
return priv->ar_validators;
}
-@@ -467,7 +467,7 @@ GPtrArray
+@@ -569,7 +569,7 @@ GPtrArray
guint i;
--- /dev/null
+From: Andrea Zagli <azagli@libero.it>
+Date: Sat, 6 Jan 2018 12:12:59 +0100
+Subject: Glib old version private.
+
+---
+ src/form.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/form.c b/src/form.c
+index ac025bd..a89928b 100644
+--- a/src/form.c
++++ b/src/form.c
+@@ -321,7 +321,7 @@ zak_form_form_remove_element (ZakFormForm *zakform, ZakFormElement *element)
+ {
+ ZakFormFormPrivate *priv;
+
+- priv = zak_form_form_get_instance_private (zakform);
++ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
+
+ return g_ptr_array_remove (priv->ar_elements, (gpointer)element);
+ }
+@@ -342,7 +342,7 @@ zak_form_form_remove_element_by_id (ZakFormForm *zakform, const gchar *id)
+
+ guint i;
+
+- priv = zak_form_form_get_instance_private (zakform);
++ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
+
+ ret = FALSE;
+
+@@ -373,7 +373,7 @@ zak_form_form_remove_element_by_idx (ZakFormForm *zakform, guint idx)
+ {
+ ZakFormFormPrivate *priv;
+
+- priv = zak_form_form_get_instance_private (zakform);
++ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
+
+ return (g_ptr_array_remove_index (priv->ar_elements, idx) != NULL);
+ }
+@@ -427,7 +427,7 @@ zak_form_form_get_element_idx_by_id (ZakFormForm *zakform, const gchar *id)
+
+ guint i;
+
+- priv = zak_form_form_get_instance_private (zakform);
++ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
+
+ ret = -1;
+ for (i = 0; i < priv->ar_elements->len; i++)