[Freeciv-Dev] Re: GTK gurus: one question
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tue, 27 Mar 2001, Tuomas Airaksinen wrote:
> I need to show map_canvas widget on two pages of my notebook:
> firstly in "City" and secondly in "Happiness" page. So - I just tried
> to gtk_container_add(GTK_CONTAINER(frame), pdialog->map_canvas)
> another time - frame is show, but map_canvas is not. Only following
> gtk error appears:
> Gtk-CRITICAL **: file gtkcontainer.c: line 715 (gtk_container_add):
> assertion `widget->parent == NULL' failed.
> What do I need to "duplicate" widget, or do I need to make all things
> twise (create a new array and so on) to show it in second place?
IIRC a GTK+ widget can only have a single parent at any given time.
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa