[vala] gdk-3.0: Fix GdkRectangle binding



commit b1fc5ae429c431c76785c3fa82f6da2bb72285f5
Author: Jürg Billeter <j bitron ch>
Date:   Mon Feb 7 23:05:07 2011 +0100

    gdk-3.0: Fix GdkRectangle binding
    
    Fixes bug 637901.

 vapi/gdk-3.0.vapi                         |    4 ++++
 vapi/packages/gdk-3.0/gdk-3.0-custom.vala |    7 +++++++
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/vapi/gdk-3.0.vapi b/vapi/gdk-3.0.vapi
index e5e79e0..7aaf482 100644
--- a/vapi/gdk-3.0.vapi
+++ b/vapi/gdk-3.0.vapi
@@ -718,6 +718,10 @@ namespace Gdk {
 	}
 	[CCode (type_id = "GDK_TYPE_RECTANGLE", cheader_filename = "gdk/gdk.h")]
 	public struct Rectangle {
+		public int x;
+		public int y;
+		public int width;
+		public int height;
 		public bool intersect (Gdk.Rectangle src2, Gdk.Rectangle dest);
 		public void union (Gdk.Rectangle src2, out Gdk.Rectangle dest);
 	}
diff --git a/vapi/packages/gdk-3.0/gdk-3.0-custom.vala b/vapi/packages/gdk-3.0/gdk-3.0-custom.vala
index 695fa56..d02ae14 100644
--- a/vapi/packages/gdk-3.0/gdk-3.0-custom.vala
+++ b/vapi/packages/gdk-3.0/gdk-3.0-custom.vala
@@ -29,6 +29,13 @@ namespace Gdk {
 	public class Bitmap {
 	}
 
+	public struct Rectangle {
+		public int x;
+		public int y;
+		public int width;
+		public int height;
+	}
+
 	[Deprecated (since = "vala-0.12", replacement = "Selection.convert")]
 	public static void selection_convert (Gdk.Window requestor, Gdk.Atom selection, Gdk.Atom target, uint32 time_);
 	[Deprecated (since = "vala-0.12", replacement = "Selection.owner_get")]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]