failed manual note query
| From: | Unprivileged user | Date: | Sun, 23 Apr 2006 14:54:53 +0000 |
| Subject: | failed manual note query | ||
| Groups: | php.gtk.webmaster | ||
| Request: | Send a blank email to php-gtk-webmaster+get-3057@lists.php.net to get a copy of this message | ||
INSERT INTO note (user, note, sect, ts, lang) VALUES
('php-gtk[AT]fallofempires[DOT]com','This function calls the main gtk loop. NOTE: any
code placed after the call to gtk::main will NOT be processed until after the gtk main loop exits.
If you have other thigns that you want to do while looping the gui (eg read from an open socket) you
need to do something like this:
<?php
function loop()
{
global $socket;
gtk::main_iteration_do(false);
//use iteration do so you can prevent blocking while waiting for an event
read_from_socket($socket);
}
function exit()
{
//connect this to the exit function as gtk::exit won\'t work.
global $quit;
$quit = true;
}
$quit = false;
While (!$quit)
{
loop();
}
?>','gtk.method.main.php','2006-04-23 14:54:53','')