Potentially resolved dialog issues on GTK+; will need to find out. Thanks to lazka in irc.gimp.net/#gtk+ for assistance.

This commit is contained in:
Pietro Gagliardi 2014-08-19 03:21:03 -04:00
parent f131ac432b
commit 32c1d47fd8
1 changed files with 6 additions and 1 deletions

View File

@ -39,8 +39,13 @@ func issue(f *func()) {
C.gdk_threads_add_idle(C.GSourceFunc(C.doissue), C.gpointer(unsafe.Pointer(f)))
}
var inmodal = false
//export doissue
func doissue(data C.gpointer) C.gboolean {
if inmodal {
return C.TRUE // wait for modal dialog to finish
}
perform(unsafe.Pointer(data))
return C.FALSE // don't repeat
return C.FALSE // don't repeat
}