]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gdk-3.0: Fix GdkRectangle binding
authorJürg Billeter <j@bitron.ch>
Mon, 7 Feb 2011 22:05:07 +0000 (23:05 +0100)
committerJürg Billeter <j@bitron.ch>
Mon, 7 Feb 2011 22:05:07 +0000 (23:05 +0100)
Fixes bug 637901.

vapi/gdk-3.0.vapi
vapi/packages/gdk-3.0/gdk-3.0-custom.vala

index e5e79e087a56e0cd8d047be876c176b346849a61..7aaf482a45537b8bb2dd2a7b9ee0de2f79bb6067 100644 (file)
@@ -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);
        }
index 695fa56b04dd5d815e6fa5eb091679b12920cfa9..d02ae1430fcc2265380ed30ccd85f42f7c5ca78a 100644 (file)
@@ -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")]