2002-11-10 10:09:05 +00:00
|
|
|
/* type.c : GType utilities
|
2002-08-08 04:48:41 +00:00
|
|
|
*
|
|
|
|
* Author: Mike Kestner <mkestner@speakeasy.net>
|
|
|
|
*
|
|
|
|
* <c> 2002 Mike Kestner
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <glib-object.h>
|
|
|
|
|
|
|
|
gchar *
|
|
|
|
gtksharp_get_type_name (GObject *obj)
|
|
|
|
{
|
|
|
|
return G_OBJECT_TYPE_NAME (obj);
|
|
|
|
}
|
|
|
|
|
2002-09-01 04:46:38 +00:00
|
|
|
gboolean
|
|
|
|
gtksharp_is_object (gpointer obj)
|
|
|
|
{
|
|
|
|
return G_IS_OBJECT (obj);
|
|
|
|
}
|
2002-08-08 04:48:41 +00:00
|
|
|
|
2002-10-05 05:12:00 +00:00
|
|
|
GType
|
|
|
|
gtksharp_get_type_id (GObject *obj)
|
|
|
|
{
|
|
|
|
return G_TYPE_FROM_INSTANCE (obj);
|
|
|
|
}
|
|
|
|
|
|
|
|
GType
|
|
|
|
gtksharp_get_parent_type (GType typ)
|
|
|
|
{
|
|
|
|
return g_type_parent (typ);
|
|
|
|
}
|
|
|
|
|
|
|
|
gchar *
|
|
|
|
gtksharp_get_type_name_for_id (GType typ)
|
|
|
|
{
|
|
|
|
return g_type_name (typ);
|
|
|
|
}
|