Re: how to remove a CanvasWidget from a canvas and put it on another
- From: Havoc Pennington <hp redhat com>
- To: u07ih abdn ac uk
- Cc: thomas linuxpro org, gnome-devel-list gnome org
- Subject: Re: how to remove a CanvasWidget from a canvas and put it on another
- Date: 09 Jun 2000 22:40:58 -0400
u07ih@abdn.ac.uk 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. http://developer.gnome.org/doc/GGAD has
some text on this point.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]