mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 04:45:37 +00:00
ab081f8358
* generator/ObjectGen.cs : generate dtors. * glib/Object.cs : Implement IDisposable. Add a new DisposeNative method. Implement default dtor. * glue/object.c : new gtksharp_object_unref_if_floating method. * gtk/Object.custom : override DisposeNative to check float bit. svn path=/trunk/gtk-sharp/; revision=7235
18 lines
404 B
Plaintext
Executable file
18 lines
404 B
Plaintext
Executable file
// Gtk.Object.custom - Gtk Window class customizations
|
|
//
|
|
// Author: Mike Kestner <mkestner@speakeasy.net>
|
|
//
|
|
// (c) 2002 Mike Kestner
|
|
//
|
|
// This code is inserted after the automatically generated code.
|
|
|
|
|
|
[DllImport("gtksharpglue")]
|
|
static extern void gtksharp_object_unref_if_floating (IntPtr raw);
|
|
|
|
protected override void DisposeNative ()
|
|
{
|
|
gtksharp_object_unref_if_floating (Handle);
|
|
}
|
|
|