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:
parent
f131ac432b
commit
32c1d47fd8
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue