Re: notebook again

From: Date: Thu, 11 Sep 2003 13:24:26 +0000
Subject: Re: notebook again
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3876@lists.php.net to get a copy of this message
On Thu, 11 Sep 2003, Christian Machmeier wrote: > Hy Rich! > > Here's the example code I wrote, does this do multiple calls for you? > > C:\GtkDev\dev\scs\test>C:\GtkDev\php4\php.exe notebooktabs.php > Page Changed. New Page is: 0 > Page Changed. New Page is: 0 > Page Changed. New Page is: 0 > Page Changed. New Page is: 0 > > I've done nothing until here. Only the program call. What is going on > here? This is during the init of the GUI correct? Having a look at the code it must have to do with the adding of the pages. Move this line: $notebook->connect ('switch-page',page_changed); to just before the Gtk::main(); and it goes away. This probably means that when we add a page GTK then sets the active page back to 0 again. So we just wait to register for that signal. --rdp Rich Payne http://talisman.mv.com rdp at talisman dot mv dot com

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