Trivial Main Functions.

Trivial Main Functions. — These are trivial interfaces to the main-loop.

Synopsis




int         gsk_main_run                    ();
void        gsk_main_quit                   ();
void        gsk_main_exit                   (int exit_status);

Description

These function can be used to run the main loop for a fixed duration, or to quit / exit the program.

Details

gsk_main_run ()

int         gsk_main_run                    ();

Run the main loop until it terminates, returning the value which should be returned by main().

Returns : the exit code for this process.

gsk_main_quit ()

void        gsk_main_quit                   ();

Quit the program by stopping gsk_main_run().


gsk_main_exit ()

void        gsk_main_exit                   (int exit_status);

Exit the program by stopping gsk_main_run().

exit_status : desired exit-status code for this process.