Re: how to remove a CanvasWidget from a canvas and put it on another canvas



> Hi,
> is there a simplistic way to remove a CanvasWidget from a canvas that is
> being destroyed such that the actual GtkWidget can be used to create a
> CanvasWidget on another canvas?

If you do a gtk_widget_ref (widget); before destroying the canvas, then create
the new canvas, put the new canvaswidget on it, and do a gtk_widget_unref
(widget);

iain




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