Re: [gtkmm] Glib::RefPtr also for Widgets?
- From: Chris Vine <chris cvine freeserve co uk>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Glib::RefPtr also for Widgets?
- Date: Sat, 21 Sep 2002 19:38:37 +0100
On Friday 20 September 2002 2:30 pm, Murray Cumming wrote:
> On Fri, 2002-09-20 at 13:38, Christof Petig wrote:
> > Hi,
> >
> > since I'm again trying to clean up the way glademm handles it's toplevel
> > widgets, I dare to ask a directional question:
> >
> > Which is the recommended way to create and destroy toplevel widgets
> > (widgets which are not children of another widget (these are handled
> > well via manage))?
>
> You can not use manage() with top-level widgets, such as Windows and
> Dialogs, and you will see a warning if you try. That just leaves you
> with all the regular C++ memory management techniques.
This must be a recent change?
When I enquired (I think about 6 months ago) I was told that memory for top
level widgets such as dialogs could be managed with manage(), and that the
Gtk+ reference counting mechanism would deal with it (I got a firm put-down
from Karl Nelson saying that this did not give rise to a memory leak when I
suggested that it might).
Chris.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]