Re: Item destroy signal



On Sun, 2008-10-12 at 21:04 +0200, Till Harbaum / Lists wrote:
> Hi,
> 
> i am changing an application from gnomecanvas to goocanvas. So far everything
> went smooth, but now i am having trouble:
> 
> In gnomecanvas the items were children of gtkwidget. Upon destruction if e.g.
> the parent group was destroyed the "destroy" signal was being sent to all
> items of that group.
> 
> I am unable to find a matching mechanism in goocanvas. How can i signal an
> GooCanvasItem that it's being destroyed? E.g. if  goo_canvas_item_remove is
> called for that item. 

Yes, the GooCanvasItem interface doesn't have a "destroy" signal. I'm
not sure if we need to add one.

You could possibly use g_object_weak_ref() which calls a callback just
before the object is freed. 

Damon




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