Re: newbie: doubt on GObject system

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

 



Thanks. Just wanted to clarify things.

:-D
Tarun

On Mon, 2003-06-09 at 03:16, Sven Neumann wrote:
> Hi,
> 
> Tarun Ramakrishna Elankath <tarun@webkadai.com> writes:
> 
> > I am new to Gtk and have been reading up on GObject and GType. What I
> > have failed to understand is why is it that the GTypeInfo structure
> > fails to provide a field for instance finalizer functions ? We have
> > fields for specifying class initialization, class finalization, instance
> > initialization functions but *not* for instance finalization.
> >
> > For specifying an instance finalization function, one needs to
> > assign it to the finalize member of the GObjectClass in the instance
> > init function. And in addition, make sure that this user-defined
> > finalization function also calls the finalize function of the parent
> > class object.
> >
> > Is this the only way to do it ? Have I misunderstood something here ?
> 
> I think you understood the principles pretty well. Well, most people
> assign the finalize method when the class is initialized, not in the
> instance initializer.
> 
> 
> Sven
> _______________________________________________
> 
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux