2003-10-17 Mike Kestner <mkestner@ximian.com>

* gtk/Window.cs : override Raw prop and take a ref, since gtk+
	owns the ref to new Windows, and we need a ref.  [Fixes #47721]

svn path=/trunk/gtk-sharp/; revision=19151
This commit is contained in:
Mike Kestner 2003-10-17 22:31:46 +00:00
parent b922fdc99b
commit 67e0164e7d
3 changed files with 20 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2003-10-17 Mike Kestner <mkestner@ximian.com>
* gtk/Window.cs : override Raw prop and take a ref, since gtk+
owns the ref to new Windows, and we need a ref. [Fixes #47721]
2003-10-17 Mike Kestner <mkestner@ximian.com>
* gnome/CanvasPoints.custom : make New overload a ctor overload.

View file

@ -1,8 +1,8 @@
// Gtk.Object.custom - Gtk Window class customizations
// Gtk.Object.custom - Gtk Object class customizations
//
// Author: Mike Kestner <mkestner@speakeasy.net>
//
// (c) 2002 Mike Kestner
// (c) 2002-2003 Mike Kestner
//
// This code is inserted after the automatically generated code.

View file

@ -7,6 +7,19 @@
// This code is inserted after the automatically generated code.
[DllImport("libgobject-2.0-0.dll")]
private static extern void g_object_ref (IntPtr raw);
protected override IntPtr Raw {
get {
return base.Raw;
}
set {
base.Raw = value;
g_object_ref (value);
}
}
/// <summary>
/// Window Constructor
/// </summary>