summaryrefslogtreecommitdiff
path: root/vapi/x11.vapi
diff options
context:
space:
mode:
authorMichael B. Trausch <mike@trausch.us>2009-08-01 17:49:52 +0200
committerJürg Billeter <j@bitron.ch>2009-08-01 17:49:52 +0200
commitdca844e187b5976788f3fc8c5a6b40d3f004cd86 (patch)
treed2ee789b62d4ca48111b1b37f3d5d4ae7f1ad93e /vapi/x11.vapi
parentfbee40cdf5483c5747e80f6661aeeda15d1725d4 (diff)
downloadvala-dca844e187b5976788f3fc8c5a6b40d3f004cd86.tar.gz
x11: Fix Window binding
Diffstat (limited to 'vapi/x11.vapi')
-rw-r--r--vapi/x11.vapi9
1 files changed, 7 insertions, 2 deletions
diff --git a/vapi/x11.vapi b/vapi/x11.vapi
index 7f73d9c7e..283ff4a19 100644
--- a/vapi/x11.vapi
+++ b/vapi/x11.vapi
@@ -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,