/* object.c : Glue to clean up GtkObject references. * * Author: Mike Kestner * * 2002 Mike Kestner */ #include #include /* Forward declarations */ void gtksharp_object_unref_if_floating (GObject *obj); gboolean gtksharp_object_is_floating (GObject *obj); int gtksharp_object_get_ref_count (GObject *obj); /* */ void gtksharp_object_unref_if_floating (GObject *obj) { if (GTK_OBJECT_FLOATING (obj)) g_object_unref (obj); } gboolean gtksharp_object_is_floating (GObject *obj) { return GTK_OBJECT_FLOATING (obj); } int gtksharp_object_get_ref_count (GObject *obj) { return obj->ref_count; }