[gobject-introspection] Keep TestStructA as simple by moving GObject membe



commit 2bdd2bf9303ae0e718c00ec84078336e722138f1
Author: Colin Walters <walters verbum org>
Date:   Tue Mar 3 16:44:36 2009 -0500

    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).
---
 tests/everything/everything.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]