From 2bdd2bf9303ae0e718c00ec84078336e722138f1 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 03 Mar 2009 21:44:36 +0000 Subject: Keep TestStructA as simple by moving GObject member to a new structure The change in commit 2912b broke the gjs test suite which was relying on TestStructA being "simple" (i.e. only having primitive fields as members). --- diff --git a/tests/everything/everything.h b/tests/everything/everything.h index 448c74d..dbb7995 100644 --- a/tests/everything/everything.h +++ b/tests/everything/everything.h @@ -107,7 +107,6 @@ struct _TestStructA gint8 some_int8; gdouble some_double; TestEnum some_enum; - GObject *some_obj; }; void test_struct_a_clone (TestStructA *a, @@ -122,6 +121,13 @@ struct _TestStructB void test_struct_b_clone (TestStructB *b, TestStructB *b_out); +/* This one has a non-basic member */ +struct _TestStructC +{ + gint another_int; + GObject *obj; +}; + /* plain-old-data boxed types */ typedef struct _TestSimpleBoxedA TestSimpleBoxedA; typedef struct _TestSimpleBoxedB TestSimpleBoxedB; -- cgit v0.9.1