I was just playing around with PHP-GTK, and ran into an issue. I set up my window with a button box and a set of buttons within said box. One of those buttons runs the function 'term.' This is term():
Code:
function term()
{
global $window;
$window->hide_all();
system("xterm &");
gtk::main_quit();
}
For some reason, though, the xterm is called before the GTK window is hidden, and the hide is called right after I close the xterm, immediately followed by the quit.
Why isn't the xterm being called before the hide/quit?
Edit: Whoops, forgot to show you how the button/function relationship is set up. Looks like this:
Code:
$term = &new GtkButton('Term');
$term-> connect('released','term');
I get the same results when using 'clicked' or 'pressed.'