]> git.draconx.ca Git - gob-dx.git/blobdiff - src/test.gob
Release 2.0.8
[gob-dx.git] / src / test.gob
index 776c035cc20cdb1454b7fc47f89b6e841a80c713..8146a72538f234665c65ea4bdb5712add599876c 100644 (file)
@@ -56,6 +56,11 @@ union _gob__union_t {
        int i, x, y, z;
 };
 void bubu(void);
+
+/* Fake boxed */
+#define PACKAGE_TYPE_BOXED 1
+typedef void * PackageBoxed;
+
 %}
 %header{
 /* this should be in the header, just under bubu prototype */
@@ -196,6 +201,19 @@ class Test:Object from G:Object
                                flags_type = Some:Flags,
                                link);
 
+         private PackageBoxed *prop;
+         property BOXED prop (nick="prop",
+                              blurb="prop",
+                              boxed_type=Package:Boxed,
+                              link);
+         /* testing old semantics */
+         private PackageBoxed *prop2;
+         property BOXED prop2 (nick="prop2",
+                              blurb="prop2",
+                              boxed_type=PACKAGE_TYPE_BOXED,
+                              link);
+
+
        private int j;
        public GObject * h;
        public char *bleh;
@@ -457,11 +475,11 @@ class Test:Object from G:Object
        }
 
        signal last NONE(CHAR,UCHAR,BOOLEAN,INT,UINT,LONG,ULONG,FLOAT,DOUBLE,
-                        STRING,ENUM,FLAGS,BOXED,POINTER,OBJECT)
+                        STRING,ENUM,POINTER,OBJECT)
        void
        testargs(self, gchar a, guchar b, gboolean c, gint d, guint e, glong f,
                 gulong g, gfloat h, gdouble i, gchar * j, gint k,
-                guint l, gpointer m, gpointer o, GObject *p)
+                gpointer o, GObject *p)
        {
                /* ugh, testing casting */
        }