Re: [Vala] exit() ? quit() ?
- From: Robert Powell <rob yorba org>
- To: Harry Van Haaren <harryhaaren gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] exit() ? quit() ?
- Date: Wed, 21 Jul 2010 15:50:55 -0700
On Wed, Jul 21, 2010 at 3:47 PM, Harry Van Haaren <harryhaaren gmail com>wrote:
Cheers, but unfortunatly, I dont have a main loop running at the time.
Using Gtk.main_quit() in that spot just returns a:
(main:10988): Gtk-CRITICAL **: gtk_main_quit: assertion `main_loops !=
NULL' failed
while the program keeps running...
I'm looking for the C function:
exit(-1);
Oh, that's even easier :)
Add this to your vala file:
extern void exit(int exit_code);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]