Re: Canvas item destructors



On Tue, 2006-07-25 at 18:17 +0200, Murray Cumming wrote:
> On Mon, 2006-07-24 at 20:45 +1000, Jean-Marc Valin wrote:
> > Hi,
> > 
> > I'm having problems with libgnomecanvasmm. I'm deriving from the Rect
> > class. When I destroy the parent group, my rect disappears from the
> > canvas, but my (derived) class destructor doesn't get called. I guess my
> > question would be is that a bug or feature? ...and if it's a feature,
> > how are we supposed to manage item destructors?
> 
> As far as I know, you have to delete the child items yourself. I don't
> think that manage() works with canvas items. But I don't use the canvas
> - maybe someone else knows.

Sorry, I looked that the examples/canvas/ example (in the
libgnomecanvasmm tarball), and discovered for sure that the example does
delete the child items explicitly.

I haven't seen an example that uses manage() with canvas items.

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