[Java-gnome-developer] table remove problems
Brought to you by:
afcowie
From: Mark H. <mh...@ti...> - 2002-07-01 14:05:50
|
hi, I'm using java-gnome code from CVS. I've been having problems trying to reattach widgets to tables after removing them with the remove method of the GtkContainer (GtkTable). The widget seems to be nullified when it is removed, even though there is clearly a reference directly to it in the program. When trying to reattach, I get the following error: (java-gnome:15594): Gtk-CRITICAL **: file gtktable.c: line 578 (gtk_table_attach): assertion `GTK_IS_WIDGET (child)' failed Am I doing the wrong thing when trying to remove the widget? or is it a bug in the bindings? I have attached a simple example which demonstrates this behaviour, using a button as the widget to remove attach (although it does the same thing with any type - I was originally using GtkFrames) -- +----------------------------------------------+ | Mark Howard cam.ac.uk mh344@ | | http://www.tildemh.com tildemh.com mh@ | +----------------------------------------------+ |