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
17 lines
306 B
C
17 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);
|
|
}
|
|
|