Re: Chaining of dispose and finalize



Russell Shaw wrote:
[...]
But how do i do that when g_object_real_dispose() and g_object_finalize()
are both declared static in gobject.c ?

the gobject code always keeps a version of the class intact
(for quick reference at instantiation and for chaining):

parent_class =
    GTKTT_ANIM_CLASS (g_type_class_peek_parent
                     (musical_class));

Usualy people keep a global like this assigned at class_init time
in order to avoid multiple calls.

Cheers,
                           -Tristan




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