Re: executing gtk::main_quit ();
| From: | Andrei Zmievski | Date: | Sat, 07 May 2005 21:11:36 +0000 |
| Subject: | Re: executing gtk::main_quit (); | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5829@lists.php.net to get a copy of this message | ||
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 GtkMessageDialogHow are you generating it exactly? Please, provide code.
because of this with just a "Close" button after which I listen for the response and when the response is either GTK_RESPONSE_CLOSE or GTK_RESPONSE_NONE I'm trying to call gtk::main_quit (); since it's a critical error.Do you have a GtkWindow that you use? If so, the correct response would be to call destroy() method on that window, not gtk::main_quit(). -Andrei