]> saetta.ns0.it Git - zakform/libzakform/commitdiff
Added private function ZakFormForm::get_elements.
authorAndrea Zagli <azagli@libero.it>
Sat, 31 Oct 2015 10:41:26 +0000 (11:41 +0100)
committerAndrea Zagli <azagli@libero.it>
Sat, 31 Oct 2015 10:41:26 +0000 (11:41 +0100)
src/form.c
src/form.h

index e4c495265599fb3f5a40eba198e671a52201f253..24fcad4f086b7db744d479b9c61a1fa3791b09f9 100644 (file)
@@ -37,6 +37,8 @@ static void zak_form_form_get_property (GObject *object,
 static void zak_form_form_dispose (GObject *gobject);
 static void zak_form_form_finalize (GObject *gobject);
 
+static GPtrArray *zak_form_form_get_elements (ZakFormForm *zakform);
+
 typedef struct
        {
                GPtrArray *ar_elements;
@@ -53,6 +55,8 @@ zak_form_form_class_init (ZakFormFormClass *class)
        object_class->get_property = zak_form_form_get_property;
        object_class->dispose = zak_form_form_dispose;
        object_class->finalize = zak_form_form_finalize;
+
+       class->get_elements = zak_form_form_get_elements;
 }
 
 static void
@@ -175,3 +179,11 @@ zak_form_form_finalize (GObject *gobject)
        GObjectClass *parent_class = g_type_class_peek_parent (G_OBJECT_GET_CLASS (gobject));
        parent_class->finalize (gobject);
 }
+
+static GPtrArray
+*zak_form_form_get_elements (ZakFormForm *zakform)
+{
+       ZakFormFormPrivate *priv = zak_form_form_get_instance_private (zakform);
+
+       return priv->ar_elements;
+}
index 921fd84dd7cc545ca985741e54593e614bc9e8ee..c06f6becb25c51e87dff0da8a6acd1ba9a038e45 100644 (file)
@@ -34,6 +34,8 @@ G_DECLARE_DERIVABLE_TYPE (ZakFormForm, zak_form_form, ZAK_FORM, FORM, GObject)
 struct _ZakFormFormClass
 {
        GObjectClass parent_class;
+
+       GPtrArray *(*get_elements) (ZakFormForm *zakform);
 };