[vala] x11: Fix Window binding
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] x11: Fix Window binding
- Date: Sat, 1 Aug 2009 15:51:40 +0000 (UTC)
commit dca844e187b5976788f3fc8c5a6b40d3f004cd86
Author: Michael B. Trausch <mike trausch us>
Date: Sat Aug 1 17:49:52 2009 +0200
x11: Fix Window binding
vapi/x11.vapi | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/vapi/x11.vapi b/vapi/x11.vapi
index 7f73d9c..283ff4a 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]