LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Php-gtk (https://www.linuxquestions.org/questions/programming-9/php-gtk-316743/)

Adrohak 04-24-2005 03:29 PM

Php-gtk
 
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.'


All times are GMT -5. The time now is 01:34 PM.