Glade with multiple windows - problem

From: Date: Wed, 02 Mar 2005 17:51:17 +0000
Subject: Glade with multiple windows - problem
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5562@lists.php.net to get a copy of this message
When I call call_incluir() the incluir window opens normaly but if I close it and call again gives me an error. Can you help me?! Bruno - Brazil <?php class Controle{ //constructor function Controle() { //interface $this->interface = &new GladeXML('interface.glade'); $this->principal = $this->interface->get_widget('window1'); $this->incluir = $this->interface->get_widget('window3'); <--- $this->p_incluir = $this->interface->get_widget('button4'); //connect signals $this->principal->connect_object('destroy', array($this, 'shutdown')); $this->p_incluir->connect_object('clicked', array($this, 'call_incluir')); $this->principal->show_all(); } //shutdown function shutdown () { echo 'Desligando sistema...'; Gtk::main_quit(); } //call incluir window function call_incluir() { <--- $this->incluir->show_all(); } } ?>

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