Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2001:
[Freeciv-Dev] Re: GTK gurus: one question
Home

[Freeciv-Dev] Re: GTK gurus: one question

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: GTK gurus: one question
From: Vasco Alexandre Da Silva Costa <vasc@xxxxxxxxxxxxxx>
Date: Tue, 27 Mar 2001 20:42:42 +0100 (WET DST)

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






[Prev in Thread] Current Thread [Next in Thread]