failed manual note query
[email protected] (Unprivileged user)
| Newsgroups | php.gtk.webmaster |
|---|---|
| Message-ID | <[email protected]> |
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','')