executing gtk::main_quit ();

From: Date: Sat, 30 Apr 2005 18:30:38 +0000
Subject: executing gtk::main_quit ();
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5807@lists.php.net to get a copy of this message
Hi all, I'm using the style which is used in the demos as well, extending GtkWindow, some functions to generate widgets and handle events. 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 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. But I get this error: Gtk-CRITICAL **: gtk_main_quit: assertion `main_loops != NULL' failed I googled a bit and found out it had something to do with gtk::main_quit () being called before gtk::main () or something, I don't get it completely. I figured I could also just execute the die() function, is it "clean" to do this? Sander Knopper

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