]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
x11: Fix Window binding
authorMichael B. Trausch <mike@trausch.us>
Sat, 1 Aug 2009 15:49:52 +0000 (17:49 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 1 Aug 2009 15:49:52 +0000 (17:49 +0200)
vapi/x11.vapi

index 7f73d9c7e64f0a649267912c1be4de0fc3fd5a58..283ff4a1972624a602ff2ea06ee620a579c1356c 100644 (file)
@@ -254,7 +254,11 @@ namespace X {
 
        [SimpleType]
        [IntegerType (rank = 9)]
-       [CCode (cname = "Window")]
+       [CCode (cname = "Window", type_id = "G_TYPE_INT",
+               marshaller_type_name = "INT",
+               get_value_function = "g_value_get_int",
+               set_value_function = "g_value_set_int", default_value = "0",
+               type_signature = "i")]
        public struct Window {
        }
 
@@ -281,6 +285,7 @@ namespace X {
        [CCode (cname = "XCreateWindow")]
        public Window create_window (Display display, Window parent, int x, int y, uint width, uint height, uint border_width, int depth, uint @class, Visual? visual, X.CW valuemask, ref SetWindowAttributes attributes);
 
+       [CCode (cname = "XSetWindowAttributes")]
        public struct SetWindowAttributes {
                // public Pixmap background_pixmap;     /* background or None or ParentRelative */
                public ulong background_pixel;  /* background pixel */
@@ -337,7 +342,7 @@ namespace X {
        [CCode (cname = "XFree")]
        public int free (void* data);
 
-       [CCode (cprefix = "CW")]
+       [CCode (cprefix = "CW", cname = "int")]
        public enum CW {
                BackPixmap,
                BackPixel,