[Newbie] New window doesn't get "activated"

From: Date: Sat, 14 May 2005 14:26:48 +0000
Subject: [Newbie] New window doesn't get "activated"
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5855@lists.php.net to get a copy of this message
Hi all. Sorry for disturbing you again with simple problems, but I'm stuck again... I simply want to add a dialog box for the user (myself so far) to confirm some kind of operation. So I added a dialog box in my Glade v1 project, but when I open the glade file with GladeXML (PHP 4.3.4), both the main window AND the dialog box appear. So I thought that hiding the dialog box from the beginning was the right way to do things, but when I trigger the show() signal, the dialog box appears, it is actually the active window from KDE's point of view, but there seem to be no loop - some kind of a main() function, like the Gtk::main() function - waiting for user interaction with the dialog box. On the contrary, the PHP code which is just after the show() function is immediately executed :( I was wondering if splitting the Glade file into two files - each one storing the definition of only one window - would make some difference. But it didn't. I tried using the activate() signal for the dialog box just before / after the show() function but it makes no difference at all. I also tried using a GtkDialog widget instead of a GtkWindow, but the problem remains the same. Is this an issue relating to GladeXML ? I looked for examples out there making use of GladeXML to create windows but there are few of them and none helped me understand what I miss. Nearly all examples I've encountered create windows in the "raw" way - using pack_start(), etc... Any help would be greatly appreciated, may it be the solution to my problem or links to documentations explaining the basics of PHP-GTK / Glade v1. Many thanks in advance. -- Le papagone du 4ème. 'For us it is not a question of Microsoft versus Linux. It is just a matter of choosing between a free software and a monopoly. We feel that when we are putting public information out in the open, then it should not be through a proprietary software.' This is what Digvijay Singh - Chief Minister of the Indian state of Madhya Pradesh - personally told to Bill Gates late 2002 :-) http://slashdot.org/articles/02/11/20/1528204.shtml?tid=106

« previous php.gtk.general (#5855) next »