Re: notebook and shutdown.

From: Date: Fri, 18 Mar 2005 21:28:43 +0000
Subject: Re: notebook and shutdown.
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5671@lists.php.net to get a copy of this message
I think that it happens because Gtk removes the widgets from reverse order they were put when the app shutdowns... Pablo Em Sex, 2005-03-18 às 10:13, Dimitri Giardina escreveu: > 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 ] -- :: Pablo Dall'Oglio +55 (51) 3714-6653 :: Solis - Cooperativa de Solucoes Livres :: www.solis.coop.br - Lajeado, RS - Brasil :: www.varianet.com.br (personal) :: "Life's a Journey, Not a Destination" - Steven Tyler

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