Re[2]: [PHP-GTK] executing gtk::main_quit ();

From: Date: Mon, 09 May 2005 11:33:01 +0000
Subject: Re[2]: [PHP-GTK] executing gtk::main_quit ();
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5834@lists.php.net to get a copy of this message
Hi, Monday, May 9, 2005, 4:59:05 PM, you wrote: RL> On Sat, May 7, 2005 2:11 pm, Andrei Zmievski said: >> On Apr 30, 2005, at 11:30 AM, Sander Knopper wrote: >> >>> At the end of the script a new object is made and gtk::main (); is >>> called. >>> >>> Anyway, the problem is that when an error occurs and I generate a >>> GtkMessageDialog >> >> How are you generating it exactly? Please, provide code. RL> As I understand it, the root problem is this: RL> His automated error handling is creating GtkMessageDialog, and then RL> calling gtk::main_quit() when the user clicks "Close" on that, because he RL> wants to quit out of his application after an error. RL> But sometimes the error that causes all this to happen is occuring RL> *before* the end of the script wherein the last object is created, and RL> gtk::main() is called. RL> So the gtk::main_quit() gets called due to an error condition that RL> pre-dates the gtk::main() call. RL> The short answer is "Don't do that" RL> The longer answer is, maybe there is a function you can call to find out RL> if you are in a gtk::main() loop. gtk::main_level() may be of help.. -- regards, Tom

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