Re: deleting derived widget?



On Sun, 2006-02-19 at 21:35 +0000, Chris Vine wrote:
> gtkmm's memory management is not the same as GTK+'s.  In gtkmm, generally you 
> have to call manage() on the widget for it to be owned by its container.  
> Whether that also applies to glademm I do not know.

glademm is not libglademm.

When using libglademm, the memory management is like so:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch20s02.html
(it does the manage() for you.)

Possibly that's a bit inconsistent compared to doing a regular new(),
but we didn't know how libglade worked when we first created the API,
and it's not so bad.

-- 
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]