return type;
}
+static GType
+gi_marshalling_tests_boxed_glist_get_type (void)
+{
+ static GType type = 0;
+
+ if (type == 0) {
+ type = g_boxed_type_register_static ("GIMarshallingTestsBoxedGList",
+ (GBoxedCopyFunc) g_list_copy,
+ (GBoxedFreeFunc) g_list_free);
+ }
+
+ return type;
+}
+
GIMarshallingTestsBoxedStruct *
gi_marshalling_tests_boxed_struct_new (void)
{
SOME_STRV_PROPERTY,
SOME_BOXED_STRUCT_PROPERTY,
SOME_VARIANT_PROPERTY,
+ SOME_BOXED_GLIST_PROPERTY,
};
G_DEFINE_TYPE (GIMarshallingTestsPropertiesObject, gi_marshalling_tests_properties_object, G_TYPE_OBJECT);
case SOME_BOXED_STRUCT_PROPERTY:
g_value_set_boxed (value, self->some_boxed_struct);
break;
+ case SOME_BOXED_GLIST_PROPERTY:
+ g_value_set_boxed (value, self->some_boxed_glist);
+ break;
case SOME_VARIANT_PROPERTY:
g_value_set_variant (value, self->some_variant);
break;
gi_marshalling_tests_boxed_struct_free (self->some_boxed_struct);
self->some_boxed_struct = gi_marshalling_tests_boxed_struct_copy (g_value_get_boxed (value));
break;
+ case SOME_BOXED_GLIST_PROPERTY:
+ g_list_free (self->some_boxed_glist);
+ self->some_boxed_glist = g_list_copy (g_value_get_boxed (value));
+ break;
case SOME_VARIANT_PROPERTY:
if (self->some_variant != NULL)
g_variant_unref (self->some_variant);
gi_marshalling_tests_boxed_struct_get_type(),
G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
+ /**
+ * GIMarshallingTestsPropertiesObject:some-boxed-glist:
+ *
+ * Type: GLib.List(gint)
+ * Transfer: none
+ */
+ g_object_class_install_property (object_class, SOME_BOXED_GLIST_PROPERTY,
+ g_param_spec_boxed ("some-boxed-glist", "some-boxed-glist", "some-boxed-glist",
+ gi_marshalling_tests_boxed_glist_get_type(),
+ G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
+
g_object_class_install_property (object_class, SOME_VARIANT_PROPERTY,
g_param_spec_variant ("some-variant", "some-variant", "some-variant",
G_VARIANT_TYPE_ANY, NULL,