Re: Adding g_object_get_type?



on 11/9/01 4:23 AM, Sven Neumann at sven gimp org wrote:

> because it's already there?
> 
> #define G_TYPE_FROM_INSTANCE(instance) (G_TYPE_FROM_CLASS (((GTypeInstance*)
> (instance))->g_class))
> 
> #define G_OBJECT_TYPE(object)          (G_TYPE_FROM_INSTANCE (object))

You misunderstand me. Not "get the type of a GObject".

But rather, get the GType value for GObject. As in g_io_channel_get_type (),
gtk_widget_get_type (), etc. The implementation would be a function that
returns the constant G_TYPE_OBJECT.

    -- Darin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]