mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 19:35:33 +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
306 B
C
18 lines
306 B
C
/* object.c : Glue to clean up GtkObject references.
|
|
*
|
|
* Author: Mike Kestner <mkestner@speakeasy.net>
|
|
*
|
|
* <c> 2002 Mike Kestner
|
|
*/
|
|
|
|
#include <glib-object.h>
|
|
#include <gtk/gtkobject.h>
|
|
|
|
void
|
|
gtksharp_object_unref_if_floating (GObject *obj)
|
|
{
|
|
if (GTK_OBJECT_FLOATING (obj))
|
|
g_object_unref (obj);
|
|
}
|
|
|