Window isn't a record, but really a typedef for uint32
authorColin Walters <walters@verbum.org>
Wed, 8 Jul 2009 13:16:25 +0000 (09:16 -0400)
committerColin Walters <walters@verbum.org>
Wed, 8 Jul 2009 13:16:25 +0000 (09:16 -0400)
Since it's used in the API as just "Window foo();", bindings
will fail trying to take a by-value struct.

gir/xlib-2.0.gir

index 5ee0586..02f9874 100644 (file)
@@ -3,6 +3,8 @@
             xmlns="http://www.gtk.org/introspection/core/1.0"
             xmlns:c="http://www.gtk.org/introspection/c/1.0">
   <namespace name="xlib" version="2.0">
+    <alias name="Window" target="uint32" c:type="Window"/>
+
     <record name="Atom" c:type="Atom"/>
     <record name="Display" c:type="Display"/>
     <record name="Drawable" c:type="Drawable"/>
@@ -12,7 +14,6 @@
     <record name="Picture" c:type="Picture"/>
     <record name="Screen" c:type="Screen"/>
     <record name="VisualID" c:type="VisualID"/>
-    <record name="Window" c:type="Window"/>
     <record name="XEvent" c:type="XEvent"/>
     <record name="XConfigureEvent" c:type="XConfigureEvent"/>
     <record name="XID" c:type="XID"/>