Re: Canvas item destructors



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.

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