Re: [gtkmm] Glib::RefPtr also for Widgets?



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]