Re: Deleting widgets loaded using libglademm



On Tue, 2007-01-09 at 22:10 +0100, Daniel Elstner wrote:
> Am Dienstag, den 09.01.2007, 21:25 +0100 schrieb Tomasz Olszewski:
> > Hello!
> > 
> > gtkmm documentation seems a bit confusing when it comes to libglademm.
> > Chapter 23
> > (http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch23.html) says
> > that:
> > 
> > "The widgets are owned by the |Gnome::Glade::Xml| instance, and will be
> > deleted automatically when it is deleted, when the last copy of the
> > smartpointer goes out of scope."
> 
> The documentation is blatantly wrong, or at the very least highly
> misleading.  The RefPtr<Gnome::Glade::Xml> smart pointer only controls
> the in-memory representation of the xml tree, and has nothing to do with
> the lifetime of the widgets as far as I can tell.
[snip]

Yes, I'll remove that text. I thought I had already.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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