mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-03-01 04:47:16 +00:00
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:
parent
b922fdc99b
commit
67e0164e7d
|
@ -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>
|
2003-10-17 Mike Kestner <mkestner@ximian.com>
|
||||||
|
|
||||||
* gnome/CanvasPoints.custom : make New overload a ctor overload.
|
* gnome/CanvasPoints.custom : make New overload a ctor overload.
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
// Gtk.Object.custom - Gtk Window class customizations
|
// Gtk.Object.custom - Gtk Object class customizations
|
||||||
//
|
//
|
||||||
// Author: Mike Kestner <mkestner@speakeasy.net>
|
// Author: Mike Kestner <mkestner@speakeasy.net>
|
||||||
//
|
//
|
||||||
// (c) 2002 Mike Kestner
|
// (c) 2002-2003 Mike Kestner
|
||||||
//
|
//
|
||||||
// This code is inserted after the automatically generated code.
|
// This code is inserted after the automatically generated code.
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,19 @@
|
||||||
// This code is inserted after the automatically generated code.
|
// 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>
|
/// <summary>
|
||||||
/// Window Constructor
|
/// Window Constructor
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in a new issue