From: Jürg Billeter Date: Mon, 7 Feb 2011 22:05:07 +0000 (+0100) Subject: gdk-3.0: Fix GdkRectangle binding X-Git-Tag: 0.11.6~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1fc5ae429c431c76785c3fa82f6da2bb72285f5;p=thirdparty%2Fvala.git gdk-3.0: Fix GdkRectangle binding Fixes bug 637901. --- diff --git a/vapi/gdk-3.0.vapi b/vapi/gdk-3.0.vapi index e5e79e087..7aaf482a4 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 695fa56b0..d02ae1430 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")]