Re: Problem with new window

From: Date: Tue, 07 Dec 2004 17:50:50 +0000
Subject: Re: Problem with new window
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5316@lists.php.net to get a copy of this message
Christian Weiske wrote:
When i call more time the function to open the window dialog a receive critical error like this: This is the code to verify the problem:
It could help if you would send the error message as well. Regards/MfG, Christian Weiske
I've run the code and I get this errors: (test.php:644): Gtk-CRITICAL **: file gtktable.c: line 507 (gtk_table_attach): a ssertion `child->parent == NULL' failed I think they are caused because the second time the window is opened it adds again the same gtkentrys just added in other window so they're already being used... and the attach method fails. One solution is to define the $input_client= &new GTkEntry(); $input_computer = &new GTkEntry(); $input_email = &new GTkEntry(); inside the client_data() function, not being globals or if so, anyway you need to define them each time you create a new window and cannot be reused... Sorry my bad english but hope it helps you, Gonzalo

« previous php.gtk.general (#5316) next »