Re: More adventures with subclassing



On 26.07.2012 10:10, Emmanuele Bassi wrote:
On 25 July 2012 20:11, Jeffrey Ratcliffe <jeffrey ratcliffe gmail com> wrote:
It seems that in subclassed a widget, any properties assigned in
->new() are not available in INIT_INSTANCE.

yes, it's been like that for ever. INIT_INSTANCE is meant to be used
to initialize the instance; you want a CONSTRUCTED sub, which is
available in C but I never remember if it was added to perl-Glib.

Unfortunately, we don't have support for the 'constructor' or the 'constructed' vfuncs. See <https://bugzilla.gnome.org/show_bug.cgi?id=573493> for a discussion of the difficulties.



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