-libzakform (0.0.1-4~6.gbp93b859) UNRELEASED; urgency=medium
+libzakform (0.0.1-4~7.gbpdc0f58) UNRELEASED; urgency=medium
- ** SNAPSHOT build @93b859fdaee31093247b0f27ff27ab846e1b83ee **
+ ** SNAPSHOT build @dc0f58a402c4d3b9c900adf1eb54ec569f91029c **
[ Andrea Zagli ]
* Initial release
[ tux ]
- -- tux <tux@develop64.comune.scandicci.fi.it> Sat, 27 May 2017 09:19:02 +0200
+ [ Andrea Zagli ]
+ * Debian pkg: locale files in dev (closes #1121).
+ * Enabled gtk-doc.
+ * Enabled gir.
+ * Added private function ZakForm::get_module_new.
+ * Renamed function ZakFormForm::get_form_element_validator.
+ * Added function ZakFormForm::get_form_element_filter.
+ * Use of ZakFormForm::get_module_new in FormValidator construct from xml.
+ * Make public function ZakFormElement::xml_parsing.
+ * Added function ZakFormForm::get_form_element.
+ * Added some member functions to ZakFormElement.
+ * Added class ZakFormElementExtension.
+ * Moved functions ZakFormForm::get_form_* to commons.
+ * Moved function ZakFormForm::element_xml_parsing in ZakFormElement.
+ * Start of implementation of FormElementArray.
+ * Added function ZakFormElementArray::get_element_by_id.
+ * Wrong comparision value in ZakForm*ValidatorCompare*.
+ * Implemented functions ZakFormElementArray::[gs]et_visible.
+ * Implemented functions ZakFormElementArray::[gs]et_editable.
+ * Implemented functions ZakFormElementArray::is_valid.
+ * Implemented functions ZakFormElementArray::is_changed.
+
+ [ tux ]
+
+ -- tux <tux@develop64.example.tst> Sat, 24 Jun 2017 10:34:40 +0200
Source: libzakform
Priority: optional
Maintainer: Andrea Zagli <azagli@libero.it>
-Build-Depends: debhelper (>=9), libzakutils-dev, intltool, pkg-config, gtk-doc-tools, libxml2-dev
+Build-Depends: debhelper (>=9), libzakutils-dev, intltool, pkg-config, gtk-doc-tools, gobject-introspection, libgirepository1.0-dev, libxml2-dev
Standards-Version: 3.9.8
Section: libs
Homepage: http://saetta.ns0.it
usr/lib/*/libzakform.la
usr/lib/*/pkgconfig/*
usr/include/libzakform*
+usr/share/gtk-doc/*
usr/lib/*/libzakform*.so*
usr/lib/*/libzakform/modules
-usr/share/locale/*
\ No newline at end of file
+usr/share/locale/*
+usr/lib/*/girepository-1.0/*
\ No newline at end of file
index 6c6f9b6..ee33785 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
-@@ -55,7 +55,7 @@ libzakform_include_HEADERS = \
+@@ -62,10 +62,10 @@
libzakform_includedir = $(includedir)/libzakform
install-exec-hook:
uninstall-hook:
- rm -rf "$(libdir)/$(PACKAGE)"
+ rm -rf "$(DESTDIR)$(libdir)/$(PACKAGE)"
+
+ CLEANFILES =
+
-aclocal --install || exit 1
+aclocal --install -I m4 || exit 1
glib-gettextize --force --copy || exit 1
- #gtkdocize --copy || exit 1
+ gtkdocize --copy || exit 1
intltoolize --force --copy --automake || exit 1
index 226ca90..03c076f 100644
--- a/src/form.c
+++ b/src/form.c
-@@ -57,6 +57,8 @@ static void zak_form_form_finalize (GObject *gobject);
-
- static void zak_form_form_load_modules (ZakFormForm *zakform);
+@@ -51,6 +51,8 @@
+ static void zak_form_form_dispose (GObject *gobject);
+ static void zak_form_form_finalize (GObject *gobject);
+#define ZAK_FORM_FORM_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_FORM, ZakFormFormPrivate))
+
typedef struct
{
- GPtrArray *ar_modules;
+ GPtrArray *ar_elements;
@@ -65,7 +67,7 @@ typedef struct
GPtrArray *ar_messages;
} ZakFormFormPrivate;
class->get_elements = zak_form_form_get_elements;
}
-@@ -170,7 +174,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)
-@@ -356,7 +360,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)
@@ -497,7 +501,7 @@ zak_form_form_add_element (ZakFormForm *zakform, ZakFormElement *element)
ZakFormFormPrivate *priv;
-@@ -984,7 +988,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 eb9a601..ea3542c 100644
--- a/src/formelement.c
+++ b/src/formelement.c
-@@ -65,6 +65,8 @@ static void zak_form_element_finalize (GObject *gobject);
-
- static void zak_form_element_xml_parsing (ZakFormElement *element, xmlNode *xmlnode);
+@@ -66,6 +65,8 @@
+ static void zak_form_element_dispose (GObject *gobject);
+ static void zak_form_element_finalize (GObject *gobject);
+#define ZAK_FORM_ELEMENT_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_FORM_TYPE_ELEMENT, ZakFormElementPrivate))
+
static void
zak_form_element_class_init (ZakFormElementClass *class)
-@@ -100,6 +102,8 @@ zak_form_element_class_init (ZakFormElementClass *class)
-
- class->xml_parsing = zak_form_element_xml_parsing;
+@@ -100,5 +102,7 @@ zak_form_element_class_init (ZakFormElementClass *class)
+ object_class->finalize = zak_form_element_finalize;
+ g_type_class_add_private (object_class, sizeof (ZakFormElementPrivate));
+
return priv->to_save;
}
-@@ -1246,7 +1250,7 @@ zak_form_element_clear (ZakFormElement *element)
+@@ -1259,7 +1259,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_gvalue (element, priv->default_value);
- }
+ if (ZAK_FORM_ELEMENT_GET_CLASS (element)->clear != NULL)
+ {
@@ -1314,7 +1318,7 @@ zak_form_element_is_valid (ZakFormElement *element)
ZakFormElementClass *klass = ZAK_FORM_ELEMENT_GET_CLASS (element);
- ZakFormFormPrivate *priv = zak_form_form_get_instance_private (zak_form_form);
+ ZakFormFormPrivate *priv = ZAK_FORM_FORM_GET_PRIVATE (zak_form_form);
- priv->ar_modules = NULL;
priv->ar_elements = g_ptr_array_new ();
+ priv->ar_validators = g_ptr_array_new ();
diff --git a/src/formelement.c b/src/formelement.c
index ea3542c..93b29c4 100644
--- a/src/formelement.c
index db77782..3090dde 100644
--- a/src/form.c
+++ b/src/form.c
-@@ -300,7 +300,7 @@ zak_form_get_form_element_validator (ZakFormForm *zakform, const gchar *namespac
-
- g_return_val_if_fail (ZAK_FORM_IS_FORM (zakform), NULL);
-
-- priv = zak_form_form_get_instance_private (zakform);
-+ priv = ZAK_FORM_FORM_GET_PRIVATE (zakform);
-
- validator_constructor = NULL;
-
@@ -627,7 +627,7 @@ ZakFormValidator
guint i;
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+export DEB_CFLAGS_MAINT_STRIP = -Werror=format-security
+export DEB_CPPFLAGS_MAINT_STRIP = -Werror=format-security
+export DEB_CXXFLAGS_MAINT_STRIP = -Werror=format-security
+
+
%:
dh $@
override_dh_auto_configure:
NOCONFIGURE="X" ./autogen.sh
- dh_auto_configure
+ dh_auto_configure -- --enable-introspection --enable-gtk-doc
override_dh_auto_install:
$(MAKE) DESTDIR=$$(pwd)/debian/tmp prefix=/usr install