LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-24-2005, 03:29 PM   #1
Adrohak
Member
 
Registered: Jun 2004
Location: Florida
Distribution: Gentoo
Posts: 148

Rep: Reputation: 15
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.'

Last edited by Adrohak; 04-24-2005 at 03:32 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
compile php-gtk on slackware sio Programming 1 03-03-2005 02:29 PM
php-gtk programs don't work nemeli Linux - Software 1 03-03-2005 03:43 AM
help getting pptp-php-gtk.php to run as root mrtwice Linux - Software 0 11-21-2003 12:49 PM
Php-gtk emence Programming 2 07-23-2003 09:41 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration