mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 14:15:37 +00:00
d7a08db9f6
* glue/adjustment.c: * glue/canvaspoints.c: * glue/clipboard.c: * glue/colorseldialog.c: * glue/combo.c: * glue/dialog.c: * glue/error.c: * glue/event.c: * glue/fileselection.c: * glue/list.c: * glue/object.c: * glue/paned.c: * glue/program.c: * glue/slist.c: * glue/style.c: * glue/type.c: * glue/value.c: * glue/widget.c: removed almost all the warnings. svn path=/trunk/gtk-sharp/; revision=12751
35 lines
676 B
C
35 lines
676 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>
|
|
|
|
/* 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;
|
|
}
|