Re: [Vala] exit() ? quit() ?



On Wed, 2010-07-21 at 23:47 +0100, Harry Van Haaren 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);


exit is bound as Posix.exit. There is also Posix.abort and Posix._exit.



Thanks, -Harry

On Wed, Jul 21, 2010 at 11:42 PM, Robert Powell <rob yorba org> wrote:



On Wed, Jul 21, 2010 at 3:32 PM, Harry Van Haaren <harryhaaren gmail com>wrote:

Hey all,

Very simple question: Im looking for a "quit()" function, or "exit()".


Gtk.main_quit may do what you want.

Hope that helps.

Rob

_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]