Re: [gtk-list] Trouble swapping contents of a container




I don't understand exactly what you're trying to do but the warnings
pretty much tell you what goes wrong - 

On Tue, 2 Feb 1999, Scott MacFiggen wrote:
> 
> ** WARNING **: file gtkcontainer.c: line 359 
> (gtk_container_remove): "widget->parent == GTK_WIDGET (container)"

The container you're removing the widget from isn't the same container
it's inside, so the function returns without doing anything...

> ** WARNING **: file gtkcontainer.c: line 346 
> (gtk_container_add): "widget->parent == NULL"
> 

...so the widget isn't removed and when you try to add it to the second
container it still has a parent.

So, figure out why you're removing from the wrong container, or removing
the wrong widget.

Havoc




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