notebook and shutdown.

From: Date: Fri, 18 Mar 2005 13:13:44 +0000
Subject: notebook and shutdown.
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5661@lists.php.net to get a copy of this message
i noted this thing: for gtknotebook, there is a signal that is called when i switch pages. the problem is at shutdown. it generates an error when i close the app: Fatal error: Call to a member function on a non-object in C:\devel\src\php\gladetest\prova2.php on line 80 function on_notebook1_switch_page(&$nb) { if (!$this->is_quitting) { $nb=$this->get_widget("notebook1"); print_r($nb); 80: echo $nb->get_current_page()."\n"; /*$s=$nb->get_current_page(); echo "SWITCH $s"; */ } } a workaround is: before quitting (gtk::main_quit()), set a flag that the app is quitting. Dimitri Giardina System Administrator & Internet Programmer CD Informatica Srl. Chieti Scalo (CH) [ ITALY ]

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