Fwd: Re: Gtk::Widget::destory() ?
- From: "Maik Beckmann" <maikbeckmann gmx de>
- To: gtkmm-list gnome org
- Subject: Fwd: Re: Gtk::Widget::destory() ?
- Date: Fri, 06 Oct 2006 16:52:42 +0200
> > vbox->remove( *pbar ) ;
> >
> > At this point it should be destroyed automatically.
>
> No, child widgets are not destroyed when you remove them (well, since we
> fixed that bug, in 2.6 or 2.8). That would be quite random.
>
> They _are_ destroyed, if they are managed, when the parent container is
> destroyed, if the child is _still_ a child of that parent.
>
> --
> Murray Cumming
So calling gtk_widget_destroy is a good way to prevent an unnecessary memory consuption, if a huge number of Widgets is created on the fly ?
greetz Maik
--
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]