On Sat, Sep 19, 2009 at 12:13:56 +0200, Jürg Billeter wrote:
> On Fri, 2009-09-18 at 21:54 +0200, Jan Hudec wrote:
> > Until recently, I could store a delegate in a class. It was incorrect in
> > many
> > cases because a destroy notify was not stored in the delegates.
> >
> > Now the destroy notify is stored, but for some reason fails to be stored in
> > a class. What is worse, vala does not report any error and silently
> > generates
> > invalid code:
>
> Fixed in master.
Thanks a lot.
There is one small glitch left though -- the target_destroy_func argument is
GDestroyNotify, which is "void (*)(void *)", but the unref func passed in has
either "SomeType *(*)(SomeType *)" or "void *(*)(SomeType *)" signature. So it
needs to be cast in the generated C code to avoid a warning.
Regards,
Jan
--
Jan 'Bulb' Hudec <[email protected]>
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list