Re: Interface signals



Sven Neumann wrote:
> >
> > GType t = ATK_TYPE_TEXT;
> >
> > has stopped working.
...
> there might be other reasons, but since most _get_type() functions are
> declared G_GNUC_CONST, the compiler is allowed to optimize your code
> away completely. You should do something like the following instead.

Yes of course! thanks Sven.  Interestingly however it still doesn't
work, even if I ref the type class.

>   GType type;
> 
>   type = FOO_GET_TYPE;
>   g_type_class_ref (type);
> 
> Salut, Sven



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