From 256a80399cb43490c61ba508c7b0ad8dfea53611 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Wed, 20 Apr 2011 10:11:03 -0500 Subject: [PATCH] Obsolete and fwd Widget.GdkWindow property. * gtk/Widget.custom: mark GdkWindow obsolete and forward it to the Window property which is read/write in 3.0. [Fixes #688791] --- gtk/Widget.custom | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/gtk/Widget.custom b/gtk/Widget.custom index 17fbd48c5..b64aafbb9 100644 --- a/gtk/Widget.custom +++ b/gtk/Widget.custom @@ -24,16 +24,10 @@ // Free Software Foundation, Inc., 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. -[DllImport ("gtksharpglue-3")] -static extern void gtksharp_gtk_widget_set_window (IntPtr widget, IntPtr window); +[Obsolete ("Replaced by Window property.")] public Gdk.Window GdkWindow { - get { - return this.Window; - } - set { - Gdk.Window window = value as Gdk.Window; - gtksharp_gtk_widget_set_window (Handle, window.Handle); - } + get { return Window; } + set { Window = value; } } public void AddAccelerator (string accel_signal, AccelGroup accel_group, AccelKey accel_key)