Subject: Glib old version - private.
---
- src/form.c | 48 +++++++++++++------------
- src/formelement.c | 74 ++++++++++++++++++++------------------
+ src/form.c | 46 +++++++++++++------------
+ src/formelement.c | 70 ++++++++++++++++++++------------------
src/formelementfilterluc.c | 7 ----
src/formelementfiltertrim.c | 7 ----
src/formelementvalidator.c | 18 ++++++----
- src/formelementvalidatordate.c | 9 +----
+ src/formelementvalidatordate.c | 7 ----
src/formelementvalidatordate.h | 2 +-
- src/formelementvalidatornotempty.c | 9 +----
+ src/formelementvalidatornotempty.c | 7 ----
src/formelementvalidatornotempty.h | 2 +-
- src/formelementvalidatorregex.c | 9 +----
+ src/formelementvalidatorregex.c | 7 ----
src/formelementvalidatorregex.h | 2 +-
src/formiprovider.h | 6 ++--
src/formvalidator.c | 20 ++++++-----
src/formvalidatorcompare.h | 2 +-
src/formvalidatorcomparedate.c | 7 ----
src/formvalidatorcomparedate.h | 2 +-
- 17 files changed, 99 insertions(+), 132 deletions(-)
+ 17 files changed, 93 insertions(+), 126 deletions(-)
diff --git a/src/form.c b/src/form.c
-index a173097..bdb23a3 100644
+index c1b54cf..7670029 100644
--- a/src/form.c
+++ b/src/form.c
@@ -61,6 +61,8 @@ static void zak_form_form_finalize (GObject *gobject);
-
+
static void zak_form_form_load_modules (ZakFormForm *zakform);
-
+
+#define ZAK_FORM_FORM_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_FORM, ZakFormFormPrivate))
+
typedef struct
{
GPtrArray *ar_modules;
-@@ -68,7 +70,7 @@ typedef struct
+@@ -69,7 +71,7 @@ typedef struct
GPtrArray *ar_messages;
} ZakFormFormPrivate;
-
+
-G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (ZakFormForm, zak_form_form, G_TYPE_OBJECT)
+G_DEFINE_ABSTRACT_TYPE (ZakFormForm, zak_form_form, G_TYPE_OBJECT)
-
+
#ifdef G_OS_WIN32
static HMODULE backend_dll = NULL;
-@@ -104,6 +106,8 @@ zak_form_form_class_init (ZakFormFormClass *class)
+@@ -105,6 +107,8 @@ zak_form_form_class_init (ZakFormFormClass *class)
object_class->dispose = zak_form_form_dispose;
object_class->finalize = zak_form_form_finalize;
-
+
+ g_type_class_add_private (object_class, sizeof (ZakFormFormPrivate));
+
class->get_elements = zak_form_form_get_elements;
}
-
-@@ -172,7 +176,7 @@ zak_form_form_element_xml_parsing (ZakFormForm *zakform, ZakFormElement *element
+
+@@ -176,7 +180,7 @@ zak_form_form_element_xml_parsing (ZakFormForm *zakform, ZakFormElement *element
gboolean to_unlink;
xmlNode *xnode_tmp;
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
xnode = xnode->children;
while (xnode)
-@@ -313,7 +317,7 @@ zak_form_form_load_from_xml (ZakFormForm *zakform, xmlDoc *xmldoc)
+@@ -354,7 +358,7 @@ zak_form_form_load_from_xml (ZakFormForm *zakform, xmlDoc *xmldoc)
{
ret = TRUE;
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
cur = cur->children;
while (cur)
-@@ -462,7 +466,7 @@ zak_form_form_add_element (ZakFormForm *zakform, ZakFormElement *element)
-
+@@ -503,7 +507,7 @@ zak_form_form_add_element (ZakFormForm *zakform, ZakFormElement *element)
+
ZakFormFormPrivate *priv;
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
g_ptr_array_add (priv->ar_elements, g_object_ref (element));
ret = TRUE;
-@@ -491,7 +495,7 @@ ZakFormElement
-
+@@ -532,7 +536,7 @@ ZakFormElement
+
guint i;
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
ret = NULL;
for (i = 0; i < priv->ar_elements->len; i++)
-@@ -522,7 +526,7 @@ zak_form_form_add_validator (ZakFormForm *zakform, ZakFormValidator *validator)
-
+@@ -607,7 +611,7 @@ zak_form_form_add_validator (ZakFormForm *zakform, ZakFormValidator *validator)
+
ZakFormFormPrivate *priv;
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
g_ptr_array_add (priv->ar_validators, g_object_ref (validator));
ret = TRUE;
-@@ -544,7 +548,7 @@ zak_form_form_clear (ZakFormForm *zakform)
-
+@@ -673,7 +677,7 @@ zak_form_form_clear (ZakFormForm *zakform)
+
g_return_if_fail (ZAK_FORM_IS_FORM (zakform));
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
for (i = 0; i < priv->ar_elements->len; i++)
{
-@@ -568,7 +572,7 @@ zak_form_form_set_as_original (ZakFormForm *zakform)
-
+@@ -697,7 +701,7 @@ zak_form_form_set_as_original (ZakFormForm *zakform)
+
g_return_if_fail (ZAK_FORM_IS_FORM (zakform));
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
for (i = 0; i < priv->ar_elements->len; i++)
{
-@@ -593,7 +597,7 @@ zak_form_form_set_editable (ZakFormForm *zakform, gboolean editable)
-
+@@ -722,7 +726,7 @@ zak_form_form_set_editable (ZakFormForm *zakform, gboolean editable)
+
g_return_if_fail (ZAK_FORM_IS_FORM (zakform));
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
for (i = 0; i < priv->ar_elements->len; i++)
{
-@@ -620,7 +624,7 @@ zak_form_form_is_valid (ZakFormForm *zakform)
-
+@@ -749,7 +753,7 @@ zak_form_form_is_valid (ZakFormForm *zakform)
+
GPtrArray *ar_messages;
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
ret = TRUE;
-
-@@ -657,7 +661,7 @@ GPtrArray
+
+@@ -786,7 +790,7 @@ GPtrArray
{
ZakFormFormPrivate *priv;
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
return priv->ar_messages;
}
-@@ -677,7 +681,7 @@ zak_form_form_is_changed (ZakFormForm *zakform)
-
+@@ -806,7 +810,7 @@ zak_form_form_is_changed (ZakFormForm *zakform)
+
ZakFormFormPrivate *priv;
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
ret = FALSE;
-
-@@ -705,7 +709,7 @@ zak_form_form_load (ZakFormForm *zakform, ZakFormIProvider *provider)
+
+@@ -834,7 +838,7 @@ zak_form_form_load (ZakFormForm *zakform, ZakFormIProvider *provider)
{
ZakFormFormPrivate *priv;
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
return zak_form_iprovider_load (provider, priv->ar_elements);
}
-@@ -721,7 +725,7 @@ zak_form_form_insert (ZakFormForm *zakform, ZakFormIProvider *provider)
+@@ -850,7 +854,7 @@ zak_form_form_insert (ZakFormForm *zakform, ZakFormIProvider *provider)
{
ZakFormFormPrivate *priv;
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
return zak_form_iprovider_insert (provider, priv->ar_elements);
}
-@@ -737,7 +741,7 @@ zak_form_form_update (ZakFormForm *zakform, ZakFormIProvider *provider)
+@@ -866,7 +870,7 @@ zak_form_form_update (ZakFormForm *zakform, ZakFormIProvider *provider)
{
ZakFormFormPrivate *priv;
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
return zak_form_iprovider_update (provider, priv->ar_elements);
}
-@@ -753,7 +757,7 @@ zak_form_form_delete (ZakFormForm *zakform, ZakFormIProvider *provider)
+@@ -882,7 +886,7 @@ zak_form_form_delete (ZakFormForm *zakform, ZakFormIProvider *provider)
{
ZakFormFormPrivate *priv;
-
+
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
return zak_form_iprovider_delete (provider, priv->ar_elements);
}
-@@ -766,7 +770,7 @@ zak_form_form_set_property (GObject *object,
+@@ -895,7 +899,7 @@ zak_form_form_set_property (GObject *object,
GParamSpec *pspec)
{
ZakFormForm *zak_form_form = (ZakFormForm *)object;
- ZakFormFormPrivate *priv = zak_form_form_get_instance_private (zak_form_form);
+ ZakFormFormPrivate *priv = ZAK_FORM_FORM_GET_PRIVATE (zak_form_form);
-
+
switch (property_id)
{
-@@ -783,7 +787,7 @@ zak_form_form_get_property (GObject *object,
+@@ -912,7 +916,7 @@ zak_form_form_get_property (GObject *object,
GParamSpec *pspec)
{
ZakFormForm *zak_form_form = (ZakFormForm *)object;
- ZakFormFormPrivate *priv = zak_form_form_get_instance_private (zak_form_form);
+ ZakFormFormPrivate *priv = ZAK_FORM_FORM_GET_PRIVATE (zak_form_form);
-
+
switch (property_id)
{
-@@ -797,7 +801,7 @@ static void
+@@ -926,7 +930,7 @@ static void
zak_form_form_dispose (GObject *gobject)
{
ZakFormForm *zak_form_form = (ZakFormForm *)gobject;
- ZakFormFormPrivate *priv = zak_form_form_get_instance_private (zak_form_form);
+ ZakFormFormPrivate *priv = ZAK_FORM_FORM_GET_PRIVATE (zak_form_form);
-
-
-
-@@ -809,7 +813,7 @@ static void
+
+
+
+@@ -938,7 +942,7 @@ static void
zak_form_form_finalize (GObject *gobject)
{
ZakFormForm *zak_form_form = (ZakFormForm *)gobject;
- ZakFormFormPrivate *priv = zak_form_form_get_instance_private (zak_form_form);
+ ZakFormFormPrivate *priv = ZAK_FORM_FORM_GET_PRIVATE (zak_form_form);
-
-
-
-@@ -831,7 +835,7 @@ zak_form_form_load_modules (ZakFormForm* zakform)
-
+
+
+
+@@ -960,7 +964,7 @@ zak_form_form_load_modules (ZakFormForm* zakform)
+
if (g_module_supported ())
{
- priv = zak_form_form_get_instance_private (zakform);
+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
+
modulesdir = (gchar *)g_getenv ("LIBZAKFORM_MODULESDIR");
if (modulesdir == NULL)
diff --git a/src/formelement.c b/src/formelement.c
-index 431219a..f2fa40b 100644
+index 9e6db5e..c0eb87e 100644
--- a/src/formelement.c
+++ b/src/formelement.c
@@ -64,6 +64,8 @@ static void zak_form_element_finalize (GObject *gobject);
-
+
static void zak_form_element_xml_parsing (ZakFormElement *element, xmlNode *xmlnode);
-
+
+#define ZAK_FORM_ELEMENT_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_ELEMENT, ZakFormElementPrivate))
+
typedef struct
{
gchar *name;
-@@ -84,7 +86,7 @@ typedef struct
+@@ -85,7 +87,7 @@ typedef struct
GPtrArray *pa_messages;
} ZakFormElementPrivate;
-
+
-G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (ZakFormElement, zak_form_element, G_TYPE_OBJECT)
+G_DEFINE_ABSTRACT_TYPE (ZakFormElement, zak_form_element, G_TYPE_OBJECT)
-
+
static void
zak_form_element_class_init (ZakFormElementClass *class)
-@@ -98,6 +100,8 @@ zak_form_element_class_init (ZakFormElementClass *class)
-
+@@ -99,6 +101,8 @@ zak_form_element_class_init (ZakFormElementClass *class)
+
class->xml_parsing = zak_form_element_xml_parsing;
-
+
+ g_type_class_add_private (object_class, sizeof (ZakFormElementPrivate));
+
g_object_class_install_property (object_class, PROP_NAME,
g_param_spec_string ("name",
"Name",
-@@ -215,7 +219,7 @@ zak_form_element_add_filter (ZakFormElement *element, ZakFormElementFilter *filt
+@@ -217,7 +221,7 @@ zak_form_element_add_extension (ZakFormElement *element, GObject *extension)
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
g_ptr_array_add (priv->pa_extensions, extension);
}
-@@ -268,7 +272,7 @@ zak_form_element_set_name (ZakFormElement *element, const gchar *name)
+@@ -364,7 +368,7 @@ zak_form_element_set_name (ZakFormElement *element, const gchar *name)
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
if (priv->name != NULL)
{
-@@ -290,7 +294,7 @@ gchar
-
+@@ -386,7 +390,7 @@ gchar
+
gchar *ret;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
ret = g_strdup (priv->name);
-
-@@ -308,7 +312,7 @@ zak_form_element_set_long_name (ZakFormElement *element, const gchar *long_name)
+
+@@ -404,7 +408,7 @@ zak_form_element_set_long_name (ZakFormElement *element, const gchar *long_name)
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
if (priv->long_name != NULL)
{
-@@ -330,7 +334,7 @@ gchar
-
+@@ -426,7 +430,7 @@ gchar
+
gchar *ret;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
if (priv->long_name == NULL)
{
-@@ -355,7 +359,7 @@ zak_form_element_set_is_key (ZakFormElement *element, gboolean is_key)
+@@ -451,7 +455,7 @@ zak_form_element_set_is_key (ZakFormElement *element, gboolean is_key)
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
priv->is_key = is_key;
}
-@@ -370,7 +374,7 @@ zak_form_element_get_is_key (ZakFormElement *element)
+@@ -466,7 +470,7 @@ zak_form_element_get_is_key (ZakFormElement *element)
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
return priv->is_key;
}
-@@ -386,7 +390,7 @@ zak_form_element_set_provider_type (ZakFormElement *element, const gchar *type)
+@@ -482,7 +486,7 @@ zak_form_element_set_provider_type (ZakFormElement *element, const gchar *type)
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
if (priv->type != NULL)
{
-@@ -408,7 +412,7 @@ gchar
-
+@@ -504,7 +508,7 @@ gchar
+
gchar *ret;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
ret = g_strdup (priv->type);
-
-@@ -615,7 +619,7 @@ zak_form_element_set_value (ZakFormElement *element, const gchar *value)
-
+
+@@ -722,7 +726,7 @@ zak_form_element_set_value (ZakFormElement *element, const gchar *value)
+
ret = TRUE;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
if (priv->value != NULL)
{
-@@ -644,7 +648,7 @@ gchar
-
+@@ -751,7 +755,7 @@ gchar
+
gchar *ret;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
if (ZAK_FORM_ELEMENT_GET_CLASS (element)->get_value != NULL)
{
-@@ -673,7 +677,7 @@ zak_form_element_set_default_value (ZakFormElement *element, const gchar *value)
-
+@@ -780,7 +784,7 @@ zak_form_element_set_default_value (ZakFormElement *element, const gchar *value)
+
ret = TRUE;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
if (priv->default_value != NULL)
{
-@@ -695,7 +699,7 @@ gchar
+@@ -802,7 +806,7 @@ gchar
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
return g_strdup (priv->default_value);
}
-@@ -715,7 +719,7 @@ zak_form_element_set_original_value (ZakFormElement *element, const gchar *value
-
+@@ -822,7 +826,7 @@ zak_form_element_set_original_value (ZakFormElement *element, const gchar *value
+
ret = TRUE;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
if (priv->original_value != NULL)
{
-@@ -737,7 +741,7 @@ gchar
+@@ -844,7 +848,7 @@ gchar
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
return g_strdup (priv->original_value);
}
-@@ -775,7 +779,7 @@ zak_form_element_set_format (ZakFormElement *element, GHashTable *format)
+@@ -882,7 +886,7 @@ zak_form_element_set_format (ZakFormElement *element, GHashTable *format)
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
if (priv->format != NULL)
{
-@@ -799,7 +803,7 @@ GHashTable
-
+@@ -906,7 +910,7 @@ GHashTable
+
GHashTable *ret;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
ret = g_hash_table_ref (priv->format);
-
-@@ -817,7 +821,7 @@ zak_form_element_set_visible (ZakFormElement *element, gboolean visible)
+
+@@ -924,7 +928,7 @@ zak_form_element_set_visible (ZakFormElement *element, gboolean visible)
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
priv->visible = visible;
-
-@@ -839,7 +843,7 @@ zak_form_element_get_visible (ZakFormElement *element)
-
+
+@@ -946,7 +950,7 @@ zak_form_element_get_visible (ZakFormElement *element)
+
gboolean ret;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
if (ZAK_FORM_ELEMENT_GET_CLASS (element)->get_visible != NULL)
{
-@@ -864,7 +868,7 @@ zak_form_element_set_editable (ZakFormElement *element, gboolean editable)
+@@ -971,7 +975,7 @@ zak_form_element_set_editable (ZakFormElement *element, gboolean editable)
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
priv->editable = editable;
-
-@@ -886,7 +890,7 @@ zak_form_element_get_editable (ZakFormElement *element)
-
+
+@@ -993,7 +997,7 @@ zak_form_element_get_editable (ZakFormElement *element)
+
gboolean ret;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
if (ZAK_FORM_ELEMENT_GET_CLASS (element)->get_editable != NULL)
{
-@@ -911,7 +915,7 @@ zak_form_element_set_to_load (ZakFormElement *element, gboolean to_load)
+@@ -1018,7 +1022,7 @@ zak_form_element_set_to_load (ZakFormElement *element, gboolean to_load)
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
priv->to_load = to_load;
}
-@@ -926,7 +930,7 @@ zak_form_element_get_to_load (ZakFormElement *element)
+@@ -1033,7 +1037,7 @@ zak_form_element_get_to_load (ZakFormElement *element)
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
return priv->to_load;
}
-@@ -942,7 +946,7 @@ zak_form_element_set_to_save (ZakFormElement *element, gboolean to_save)
+@@ -1049,7 +1053,7 @@ zak_form_element_set_to_save (ZakFormElement *element, gboolean to_save)
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
priv->to_save = to_save;
}
-@@ -957,7 +961,7 @@ zak_form_element_get_to_save (ZakFormElement *element)
+@@ -1064,7 +1068,7 @@ zak_form_element_get_to_save (ZakFormElement *element)
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
return priv->to_save;
}
-@@ -972,7 +976,7 @@ zak_form_element_clear (ZakFormElement *element)
+@@ -1079,7 +1083,7 @@ zak_form_element_clear (ZakFormElement *element)
{
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
zak_form_element_set_value (element, priv->default_value);
}
-@@ -1013,7 +1017,7 @@ zak_form_element_is_valid (ZakFormElement *element)
-
+@@ -1115,7 +1119,7 @@ zak_form_element_is_valid (ZakFormElement *element)
+
ZakFormElementPrivate *priv;
-
+
- priv = zak_form_element_get_instance_private (element);
+ priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
ret = TRUE;
-
-@@ -1056,7 +1060,7 @@ zak_form_element_is_valid (ZakFormElement *element)
+
+@@ -1155,7 +1159,7 @@ zak_form_element_is_valid (ZakFormElement *element)
GPtrArray
*zak_form_element_get_messages (ZakFormElement *element)
{
- ZakFormElementPrivate *priv = zak_form_element_get_instance_private (element);
+ ZakFormElementPrivate *priv = ZAK_FORM_ELEMENT_GET_PRIVATE (element);
-
+
return priv->pa_messages;
}
-@@ -1069,7 +1073,7 @@ zak_form_element_set_property (GObject *object,
+@@ -1212,7 +1216,7 @@ zak_form_element_set_property (GObject *object,
GParamSpec *pspec)
{
ZakFormElement *zak_form_element = (ZakFormElement *)object;
- ZakFormElementPrivate *priv = zak_form_element_get_instance_private (zak_form_element);
+ ZakFormElementPrivate *priv = ZAK_FORM_ELEMENT_GET_PRIVATE (zak_form_element);
-
+
switch (property_id)
{
-@@ -1134,7 +1138,7 @@ zak_form_element_get_property (GObject *object,
+@@ -1277,7 +1281,7 @@ zak_form_element_get_property (GObject *object,
GParamSpec *pspec)
{
ZakFormElement *zak_form_element = (ZakFormElement *)object;
- ZakFormElementPrivate *priv = zak_form_element_get_instance_private (zak_form_element);
+ ZakFormElementPrivate *priv = ZAK_FORM_ELEMENT_GET_PRIVATE (zak_form_element);
-
+
switch (property_id)
{
-@@ -1196,7 +1200,7 @@ static void
+@@ -1339,7 +1343,7 @@ static void
zak_form_element_dispose (GObject *gobject)
{
ZakFormElement *zak_form_element = (ZakFormElement *)gobject;
- ZakFormElementPrivate *priv = zak_form_element_get_instance_private (zak_form_element);
+ ZakFormElementPrivate *priv = ZAK_FORM_ELEMENT_GET_PRIVATE (zak_form_element);
-
-
-
-@@ -1208,7 +1212,7 @@ static void
+
+
+
+@@ -1351,7 +1355,7 @@ static void
zak_form_element_finalize (GObject *gobject)
{
ZakFormElement *zak_form_element = (ZakFormElement *)gobject;
- ZakFormElementPrivate *priv = zak_form_element_get_instance_private (zak_form_element);
+ ZakFormElementPrivate *priv = ZAK_FORM_ELEMENT_GET_PRIVATE (zak_form_element);
-
-
-
+
+
+
diff --git a/src/formelementfilterluc.c b/src/formelementfilterluc.c
index 543043a..e0f7bf9 100644
--- a/src/formelementfilterluc.c
@@ -51,13 +51,6 @@ enum
CAMEL
};
-
+
-struct _ZakFormElementFilterLuc
-{
- ZakFormElementFilter parent_instance;
-};
-
#define ZAK_FORM_ELEMENT_FILTER_LUC_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_ELEMENT_FILTER_LUC, ZakFormElementFilterLucPrivate))
-
+
typedef struct _ZakFormElementFilterLucPrivate ZakFormElementFilterLucPrivate;
diff --git a/src/formelementfiltertrim.c b/src/formelementfiltertrim.c
index 6acafbd..8b658f1 100644
--- a/src/formelementfiltertrim.c
+++ b/src/formelementfiltertrim.c
@@ -40,13 +40,6 @@ static void zak_form_element_filter_trim_finalize (GObject *gobject);
-
+
static gchar *zak_form_element_filter_trim_filter (ZakFormElementFilter *filter_trim, const gchar *value);
-
+
-struct _ZakFormElementFilterTrim
-{
- ZakFormElementFilter parent_instance;
-};
-
#define ZAK_FORM_ELEMENT_FILTER_TRIM_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_ELEMENT_FILTER_TRIM, ZakFormElementFilterTrimPrivate))
-
+
typedef struct _ZakFormElementFilterTrimPrivate ZakFormElementFilterTrimPrivate;
diff --git a/src/formelementvalidator.c b/src/formelementvalidator.c
-index cf0b8e0..715f2a7 100644
+index 65fb8db..27c2fbd 100644
--- a/src/formelementvalidator.c
+++ b/src/formelementvalidator.c
-@@ -45,13 +45,15 @@ static void zak_form_element_validator_get_property (GObject *object,
+@@ -46,13 +46,15 @@ static void zak_form_element_validator_get_property (GObject *object,
static void zak_form_element_validator_dispose (GObject *gobject);
static void zak_form_element_validator_finalize (GObject *gobject);
-
+
+#define ZAK_FORM_ELEMENT_VALIDATOR_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_ELEMENT_VALIDATOR, ZakFormElementValidatorPrivate))
+
typedef struct
gboolean enabled;
gchar *message;
} ZakFormElementValidatorPrivate;
-
+
-G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (ZakFormElementValidator, zak_form_element_validator, G_TYPE_OBJECT)
+G_DEFINE_ABSTRACT_TYPE (ZakFormElementValidator, zak_form_element_validator, G_TYPE_OBJECT)
-
+
static void
zak_form_element_validator_class_init (ZakFormElementValidatorClass *class)
-@@ -62,6 +64,8 @@ zak_form_element_validator_class_init (ZakFormElementValidatorClass *class)
+@@ -64,6 +66,8 @@ zak_form_element_validator_class_init (ZakFormElementValidatorClass *class)
object_class->dispose = zak_form_element_validator_dispose;
object_class->finalize = zak_form_element_validator_finalize;
-
+
+ g_type_class_add_private (object_class, sizeof (ZakFormElementValidatorPrivate));
+
g_object_class_install_property (object_class, PROP_ENABLED,
g_param_spec_boolean ("enabled",
"Enabled",
-@@ -101,7 +105,7 @@ void
+@@ -111,7 +115,7 @@ void
zak_form_element_validator_set_message (ZakFormElementValidator *validator,
const gchar *message)
{
- ZakFormElementValidatorPrivate *priv = zak_form_element_validator_get_instance_private (validator);
+ ZakFormElementValidatorPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_GET_PRIVATE (validator);
-
+
priv->message = g_strdup (message);
}
-@@ -115,7 +119,7 @@ zak_form_element_validator_set_message (ZakFormElementValidator *validator,
+@@ -125,7 +129,7 @@ zak_form_element_validator_set_message (ZakFormElementValidator *validator,
gchar
*zak_form_element_validator_get_message (ZakFormElementValidator *validator)
{
- ZakFormElementValidatorPrivate *priv = zak_form_element_validator_get_instance_private (validator);
+ ZakFormElementValidatorPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_GET_PRIVATE (validator);
-
+
return g_strdup (priv->message);
}
-@@ -128,7 +132,7 @@ zak_form_element_validator_set_property (GObject *object,
+@@ -166,7 +170,7 @@ zak_form_element_validator_set_property (GObject *object,
GParamSpec *pspec)
{
ZakFormElementValidator *zak_form_element_validator = (ZakFormElementValidator *)object;
- ZakFormElementValidatorPrivate *priv = zak_form_element_validator_get_instance_private (zak_form_element_validator);
+ ZakFormElementValidatorPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_GET_PRIVATE (zak_form_element_validator);
-
+
switch (property_id)
{
-@@ -149,7 +153,7 @@ zak_form_element_validator_get_property (GObject *object,
+@@ -191,7 +195,7 @@ zak_form_element_validator_get_property (GObject *object,
GParamSpec *pspec)
{
ZakFormElementValidator *zak_form_element_validator = (ZakFormElementValidator *)object;
- ZakFormElementValidatorPrivate *priv = zak_form_element_validator_get_instance_private (zak_form_element_validator);
+ ZakFormElementValidatorPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_GET_PRIVATE (zak_form_element_validator);
-
+
switch (property_id)
{
-@@ -167,7 +171,7 @@ static void
+@@ -213,7 +217,7 @@ static void
zak_form_element_validator_dispose (GObject *gobject)
{
ZakFormElementValidator *zak_form_element_validator = (ZakFormElementValidator *)gobject;
- ZakFormElementValidatorPrivate *priv = zak_form_element_validator_get_instance_private (zak_form_element_validator);
+ ZakFormElementValidatorPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_GET_PRIVATE (zak_form_element_validator);
-
-
-
-@@ -179,7 +183,7 @@ static void
+
+
+
+@@ -225,7 +229,7 @@ static void
zak_form_element_validator_finalize (GObject *gobject)
{
ZakFormElementValidator *zak_form_element_validator = (ZakFormElementValidator *)gobject;
- ZakFormElementValidatorPrivate *priv = zak_form_element_validator_get_instance_private (zak_form_element_validator);
+ ZakFormElementValidatorPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_GET_PRIVATE (zak_form_element_validator);
-
-
-
+
+
+
diff --git a/src/formelementvalidatordate.c b/src/formelementvalidatordate.c
-index 2546c61..a2c4cd0 100644
+index df7d0f5..b938f75 100644
--- a/src/formelementvalidatordate.c
+++ b/src/formelementvalidatordate.c
-@@ -42,14 +42,7 @@ static void zak_form_element_validator_date_finalize (GObject *gobject);
-
+@@ -42,13 +42,6 @@ static void zak_form_element_validator_date_finalize (GObject *gobject);
+
static gboolean zak_form_element_validator_date_validate (ZakFormElementValidator *validator_date, const gchar *value);
-
+
-struct _ZakFormElementValidatorDate
-{
- ZakFormElementValidator parent_instance;
-};
-
#define ZAK_FORM_ELEMENT_VALIDATOR_DATE_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_DATE, ZakFormElementValidatorDatePrivate))
-
+
typedef struct _ZakFormElementValidatorDatePrivate ZakFormElementValidatorDatePrivate;
- struct _ZakFormElementValidatorDatePrivate
diff --git a/src/formelementvalidatordate.h b/src/formelementvalidatordate.h
-index be0ae89..9a7ecf2 100644
+index 0406cee..b55fdbe 100644
--- a/src/formelementvalidatordate.h
+++ b/src/formelementvalidatordate.h
@@ -31,7 +31,7 @@ G_BEGIN_DECLS
-
-
+
+
#define ZAK_FORM_TYPE_ELEMENT_VALIDATOR_DATE (zak_form_element_validator_date_get_type ())
-#define ZAK_FORM_ELEMENT_VALIDATOR_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_DATE, ZakFormElementValidatorDate)
+#define ZAK_FORM_ELEMENT_VALIDATOR_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_DATE, ZakFormElementValidatorDate))
#define ZAK_FORM_IS_ELEMENT_VALIDATOR_DATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_DATE))
#define ZAK_FORM_IS_ELEMENT_VALIDATOR_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_DATE))
diff --git a/src/formelementvalidatornotempty.c b/src/formelementvalidatornotempty.c
-index 1de3f30..a944d07 100644
+index a3ef4e2..63f6131 100644
--- a/src/formelementvalidatornotempty.c
+++ b/src/formelementvalidatornotempty.c
-@@ -40,14 +40,7 @@ static void zak_form_element_validator_notempty_finalize (GObject *gobject);
-
+@@ -46,13 +46,6 @@ static void zak_form_element_validator_notempty_finalize (GObject *gobject);
+
static gboolean zak_form_element_validator_notempty_validate (ZakFormElementValidator *validator_notempty, const gchar *value);
-
+
-struct _ZakFormElementValidatorNotempty
-{
- ZakFormElementValidator parent_instance;
-};
-
#define ZAK_FORM_ELEMENT_VALIDATOR_NOTEMPTY_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_NOTEMPTY, ZakFormElementValidatorNotemptyPrivate))
-
+
typedef struct _ZakFormElementValidatorNotemptyPrivate ZakFormElementValidatorNotemptyPrivate;
- struct _ZakFormElementValidatorNotemptyPrivate
diff --git a/src/formelementvalidatornotempty.h b/src/formelementvalidatornotempty.h
-index 3adcccc..7aa896f 100644
+index c6e3a20..3dc4c0e 100644
--- a/src/formelementvalidatornotempty.h
+++ b/src/formelementvalidatornotempty.h
@@ -31,7 +31,7 @@ G_BEGIN_DECLS
-
-
+
+
#define ZAK_FORM_TYPE_ELEMENT_VALIDATOR_NOTEMPTY (zak_form_element_validator_notempty_get_type ())
-#define ZAK_FORM_ELEMENT_VALIDATOR_NOTEMPTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_NOTEMPTY, ZakFormElementValidatorNotempty)
+#define ZAK_FORM_ELEMENT_VALIDATOR_NOTEMPTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_NOTEMPTY, ZakFormElementValidatorNotempty))
#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 cd92203..bd8a1c1 100644
+index a0d5b2b..aa8658a 100644
--- a/src/formelementvalidatorregex.c
+++ b/src/formelementvalidatorregex.c
-@@ -46,14 +46,7 @@ static void zak_form_element_validator_regex_finalize (GObject *gobject);
-
+@@ -46,13 +46,6 @@ static void zak_form_element_validator_regex_finalize (GObject *gobject);
+
static gboolean zak_form_element_validator_regex_validate (ZakFormElementValidator *validator_regex, const gchar *value);
-
+
-struct _ZakFormElementValidatorRegex
-{
- ZakFormElementValidator parent_instance;
-};
-
#define ZAK_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_REGEX, ZakFormElementValidatorRegexPrivate))
-
+
typedef struct _ZakFormElementValidatorRegexPrivate ZakFormElementValidatorRegexPrivate;
- struct _ZakFormElementValidatorRegexPrivate
diff --git a/src/formelementvalidatorregex.h b/src/formelementvalidatorregex.h
-index eefb814..7c8101c 100644
+index f8e62e0..ac437b6 100644
--- a/src/formelementvalidatorregex.h
+++ b/src/formelementvalidatorregex.h
@@ -31,7 +31,7 @@ G_BEGIN_DECLS
-
-
+
+
#define ZAK_FORM_TYPE_ELEMENT_VALIDATOR_REGEX (zak_form_element_validator_regex_get_type ())
-#define ZAK_FORM_ELEMENT_VALIDATOR_REGEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_REGEX, ZakFormElementValidatorRegex)
+#define ZAK_FORM_ELEMENT_VALIDATOR_REGEX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_REGEX, ZakFormElementValidatorRegex))
#define ZAK_FORM_IS_ELEMENT_VALIDATOR_REGEX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_REGEX))
#define ZAK_FORM_IS_ELEMENT_VALIDATOR_REGEX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ZAK_FORM_TYPE_ELEMENT_VALIDATOR_REGEX))
diff --git a/src/formiprovider.h b/src/formiprovider.h
-index be970ae..1b3a835 100644
+index be970ae..392dae5 100644
--- a/src/formiprovider.h
+++ b/src/formiprovider.h
@@ -26,10 +26,10 @@ G_BEGIN_DECLS
-
-
+
+
#define ZAK_FORM_TYPE_IPROVIDER (zak_form_iprovider_get_type ())
-#define ZAK_FORM_IPROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FORM_TYPE_IPROVIDER, ZakFormIprovider))
-#define ZAK_FORM_IPROVIDER_IFACE(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), ZAK_FORM_TYPE_IPROVIDER, ZakFormIproviderInterface))
#define ZAK_FORM_IS_IPROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZAK_FORM_TYPE_IPROVIDER))
-#define ZAK_FORM_IPROVIDER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ZAK_FORM_TYPE_IPROVIDER, ZakFormIproviderInterface))
+#define ZAK_FORM_IPROVIDER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ZAK_FORM_TYPE_IPROVIDER, ZakFormIProviderInterface))
-
-
+
+
typedef struct _ZakFormIProvider ZakFormIProvider;
diff --git a/src/formvalidator.c b/src/formvalidator.c
-index 56b1d7c..04c543d 100644
+index eba0131..6cc3f4e 100644
--- a/src/formvalidator.c
+++ b/src/formvalidator.c
-@@ -43,13 +43,15 @@ static void zak_form_validator_get_property (GObject *object,
+@@ -46,13 +46,15 @@ static void zak_form_validator_get_property (GObject *object,
static void zak_form_validator_dispose (GObject *gobject);
static void zak_form_validator_finalize (GObject *gobject);
-
+
+#define ZAK_FORM_VALIDATOR_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_VALIDATOR, ZakFormValidatorPrivate))
+
typedef struct
gboolean enabled;
gchar *message;
} ZakFormValidatorPrivate;
-
+
-G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (ZakFormValidator, zak_form_validator, G_TYPE_OBJECT)
+G_DEFINE_ABSTRACT_TYPE (ZakFormValidator, zak_form_validator, G_TYPE_OBJECT)
-
+
static void
zak_form_validator_class_init (ZakFormValidatorClass *class)
-@@ -60,6 +62,8 @@ zak_form_validator_class_init (ZakFormValidatorClass *class)
+@@ -64,6 +66,8 @@ zak_form_validator_class_init (ZakFormValidatorClass *class)
object_class->dispose = zak_form_validator_dispose;
object_class->finalize = zak_form_validator_finalize;
-
+
+ g_type_class_add_private (object_class, sizeof (ZakFormValidatorPrivate));
+
g_object_class_install_property (object_class, PROP_ENABLED,
g_param_spec_boolean ("enabled",
"Enabled",
-@@ -71,7 +75,7 @@ zak_form_validator_class_init (ZakFormValidatorClass *class)
+@@ -82,7 +86,7 @@ zak_form_validator_class_init (ZakFormValidatorClass *class)
static void
zak_form_validator_init (ZakFormValidator *zak_form_validator)
{
- ZakFormValidatorPrivate *priv = zak_form_validator_get_instance_private (zak_form_validator);
+ ZakFormValidatorPrivate *priv = ZAK_FORM_VALIDATOR_GET_PRIVATE (zak_form_validator);
}
-
+
gboolean
-@@ -99,7 +103,7 @@ void
+@@ -111,7 +115,7 @@ void
zak_form_validator_set_message (ZakFormValidator *validator,
const gchar *message)
{
- ZakFormValidatorPrivate *priv = zak_form_validator_get_instance_private (validator);
+ ZakFormValidatorPrivate *priv = ZAK_FORM_VALIDATOR_GET_PRIVATE (validator);
-
+
priv->message = g_strdup (message);
}
-@@ -113,7 +117,7 @@ zak_form_validator_set_message (ZakFormValidator *validator,
+@@ -125,7 +129,7 @@ zak_form_validator_set_message (ZakFormValidator *validator,
gchar
*zak_form_validator_get_message (ZakFormValidator *validator)
{
- ZakFormValidatorPrivate *priv = zak_form_validator_get_instance_private (validator);
+ ZakFormValidatorPrivate *priv = ZAK_FORM_VALIDATOR_GET_PRIVATE (validator);
-
+
return g_strdup (priv->message);
}
-@@ -126,7 +130,7 @@ zak_form_validator_set_property (GObject *object,
+@@ -166,7 +170,7 @@ zak_form_validator_set_property (GObject *object,
GParamSpec *pspec)
{
ZakFormValidator *zak_form_validator = (ZakFormValidator *)object;
- ZakFormValidatorPrivate *priv = zak_form_validator_get_instance_private (zak_form_validator);
+ ZakFormValidatorPrivate *priv = ZAK_FORM_VALIDATOR_GET_PRIVATE (zak_form_validator);
-
+
switch (property_id)
{
-@@ -147,7 +151,7 @@ zak_form_validator_get_property (GObject *object,
+@@ -191,7 +195,7 @@ zak_form_validator_get_property (GObject *object,
GParamSpec *pspec)
{
ZakFormValidator *zak_form_validator = (ZakFormValidator *)object;
- ZakFormValidatorPrivate *priv = zak_form_validator_get_instance_private (zak_form_validator);
+ ZakFormValidatorPrivate *priv = ZAK_FORM_VALIDATOR_GET_PRIVATE (zak_form_validator);
-
+
switch (property_id)
{
-@@ -165,7 +169,7 @@ static void
+@@ -213,7 +217,7 @@ static void
zak_form_validator_dispose (GObject *gobject)
{
ZakFormValidator *zak_form_validator = (ZakFormValidator *)gobject;
- ZakFormValidatorPrivate *priv = zak_form_validator_get_instance_private (zak_form_validator);
+ ZakFormValidatorPrivate *priv = ZAK_FORM_VALIDATOR_GET_PRIVATE (zak_form_validator);
-
-
-
-@@ -177,7 +181,7 @@ static void
+
+
+
+@@ -225,7 +229,7 @@ static void
zak_form_validator_finalize (GObject *gobject)
{
ZakFormValidator *zak_form_validator = (ZakFormValidator *)gobject;
- ZakFormValidatorPrivate *priv = zak_form_validator_get_instance_private (zak_form_validator);
+ ZakFormValidatorPrivate *priv = ZAK_FORM_VALIDATOR_GET_PRIVATE (zak_form_validator);
-
-
-
+
+
+
diff --git a/src/formvalidatorcompare.c b/src/formvalidatorcompare.c
index 02fedf6..6d4eac2 100644
--- a/src/formvalidatorcompare.c
+++ b/src/formvalidatorcompare.c
@@ -45,13 +45,6 @@ static void zak_form_validator_compare_finalize (GObject *gobject);
-
+
static gboolean zak_form_validator_compare_validate (ZakFormValidator *validator_notempty);
-
+
-struct _ZakFormValidatorCompare
-{
- ZakFormValidator parent_instance;
-};
-
#define ZAK_FORM_VALIDATOR_COMPARE_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_VALIDATOR_COMPARE, ZakFormValidatorComparePrivate))
-
+
enum
diff --git a/src/formvalidatorcompare.h b/src/formvalidatorcompare.h
index d4ab5ac..91b9180 100644
--- a/src/formvalidatorcompare.h
+++ b/src/formvalidatorcompare.h
@@ -31,7 +31,7 @@ G_BEGIN_DECLS
-
-
+
+
#define ZAK_FORM_TYPE_VALIDATOR_COMPARE (zak_form_validator_compare_get_type ())
-#define ZAK_FORM_VALIDATOR_COMPARE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZAK_FORM_TYPE_VALIDATOR_COMPARE, ZakFormValidatorCompare)
+#define ZAK_FORM_VALIDATOR_COMPARE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZAK_FORM_TYPE_VALIDATOR_COMPARE, ZakFormValidatorCompare))
#define ZAK_FORM_IS_VALIDATOR_COMPARE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZAK_FORM_TYPE_VALIDATOR_COMPARE))
#define ZAK_FORM_IS_VALIDATOR_COMPARE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ZAK_FORM_TYPE_VALIDATOR_COMPARE))
diff --git a/src/formvalidatorcomparedate.c b/src/formvalidatorcomparedate.c
-index ba0a04c..8cc0e28 100644
+index 78e4360..2546163 100644
--- a/src/formvalidatorcomparedate.c
+++ b/src/formvalidatorcomparedate.c
@@ -45,13 +45,6 @@ static void zak_form_validator_compare_date_finalize (GObject *gobject);
-
+
static gboolean zak_form_validator_compare_date_validate (ZakFormValidator *validator_notempty);
-
+
-struct _ZakFormValidatorCompareDate
-{
- ZakFormValidator parent_instance;
-};
-
#define ZAK_FORM_VALIDATOR_COMPARE_DATE_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_VALIDATOR_COMPARE_DATE, ZakFormValidatorCompareDatePrivate))
-
+
enum
diff --git a/src/formvalidatorcomparedate.h b/src/formvalidatorcomparedate.h
index ec11584..655680a 100644
--- a/src/formvalidatorcomparedate.h
+++ b/src/formvalidatorcomparedate.h
@@ -31,7 +31,7 @@ G_BEGIN_DECLS
-
-
+
+
#define ZAK_FORM_TYPE_VALIDATOR_COMPARE_DATE (zak_form_validator_compare_date_get_type ())
-#define ZAK_FORM_VALIDATOR_COMPARE_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZAK_FORM_TYPE_VALIDATOR_COMPARE_DATE, ZakFormValidatorCompareDate)
+#define ZAK_FORM_VALIDATOR_COMPARE_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZAK_FORM_TYPE_VALIDATOR_COMPARE_DATE, ZakFormValidatorCompareDate))