mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
![Mike Kestner](/assets/img/avatar_default.png)
* 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);
|
|
}
|
|
|