Re: GObject and Gtk+ Finalization



Havoc Pennington <hp redhat com> writes:

> Maciej Stachowiak <mjs eazel com> writes: 
> > What would be the correct way to do cleanup of resources used by the
> > object that is compatible with both Gtk 1.2 and Gtk 2.0?
> > 
> 
> Do all cleanup in the finalize method.
> 

Well whoops, pretty much all of Nautilus is doing it wrong.

Another question: what's the right way to be notified of a non-widget
object's destruction that's both Gtk 1.2 and 2.0 compatible? This is
pretty essential for proper factory lifecycle management when using
Bonobo.

 - Maciej






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