Implemented uiMainStep() on GTK+.

This commit is contained in:
Pietro Gagliardi 2016-05-24 22:29:33 -04:00
parent a9e731ed59
commit 8bf24cb791
1 changed files with 10 additions and 0 deletions

View File

@ -34,6 +34,16 @@ void uiMain(void)
gtk_main();
}
int uiMainStep(int wait)
{
gboolean block;
block = FALSE;
if (wait)
block = TRUE;
return gtk_main_iteration_do(block) == FALSE;
}
// gtk_main_quit() may run immediately, or it may wait for other pending events; "it depends" (thanks mclasen in irc.gimp.net/#gtk+)
// PostQuitMessage() on Windows always waits, so we must do so too
// we'll do it by using an idle callback