Re: how to remove a CanvasWidget from a canvas and put it on another writes:
> > I've tried your suggestion however when the canvas is destroyed the  canvasitem
> > that is associated with the gtkwidget is destroyed and subsequently performs a
> > gtk_widget_destroy() on the gtkwidget. Calling gtk_widget_ref() before destroying
> > the canvas doesn't seem to keep the widget from being destroyed along with the
> > canvasitem. 
> This sounds like a bug. A widget should not be destroyed if there is a ref held
> on it.

False, destruction has nothing to do with the refcount. The refcount
merely prevents finalization. has
some text on this point.


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