Re: finalize, dispose and destroy



Tristan Van Berkom wrote:
Paul Pogonyshev wrote:
Can anyone explain (point to explanation) the difference between these
three methods?  I.e., when implementing a new widget, where do I put
freeing of which resources?
[snip]

You should be safe with this:

static void
tea_kettle_finalize (GObject *object)
{
  [...]
}

Is that good enough if my widget is a container?  And if it holds
some weird references to other widgets (i.e. ones that GtkContainer
implementation cannot detect)?

Paul


P.S.  I am subscribed, no need to CC to me.



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