Re: GTypeInfo and class/instance sizes



Tim Janik <timj gtk org> writes:

> On 3 Apr 2001, Martin Baulig wrote:
> 
> > Hi,
> > 
> > this may sound a bit strange, but if you have a GType (without
> > knowing anything in particular about that type) there doesn't
> > seem to be a way to get it's class and instance size.
> > 
> > If you want to derive that type, you need to fill in the class
> > and instance sizes into the GTypeInfo struct even if you don't
> > want to create new C types for it.
> 
> g_type_query().

Oh, thanks a lot !

I should update my glib more oftenly ...

-- 
Martin Baulig
martin gnome org (private)
baulig suse de (work)




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