From db40040fdcc9268588040c011aafc3d75613f736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20G=2E=20Aragoneses?= Date: Fri, 15 Apr 2011 17:31:35 +0200 Subject: [PATCH] Gdk: Transform the out param of Rectangle.Union() to a return value. Not only this is prettier but it's also aligned with the 2.12.x API. --- gdk/Rectangle.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdk/Rectangle.cs b/gdk/Rectangle.cs index 7620f9907..d2b5511a0 100644 --- a/gdk/Rectangle.cs +++ b/gdk/Rectangle.cs @@ -220,9 +220,11 @@ namespace Gdk { [DllImport("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern void gdk_rectangle_union (ref Rectangle src1, ref Rectangle src2, out Rectangle dest); - public void Union (Gdk.Rectangle src, out Gdk.Rectangle dest) + public Gdk.Rectangle Union (Gdk.Rectangle src) { + Gdk.Rectangle dest; gdk_rectangle_union (ref this, ref src, out dest); + return dest; } [DllImport("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)]