Disabled MsgBox() on Windows for the time being; I'm going to restructure uitask to avoid needing to deal with channels and it's the only thing using uimsg now.

This commit is contained in:
Pietro Gagliardi 2014-06-30 20:36:30 -04:00
parent 33155f7496
commit 496df12751
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ func _msgBox(parent *Window, primarytext string, secondarytext string, uType uin
go func() {
ret := make(chan uiret)
defer close(ret)
/* TODO
uitask <- &uimsg{
call: _messageBox,
p: []uintptr{
@ -40,6 +41,7 @@ func _msgBox(parent *Window, primarytext string, secondarytext string, uType uin
},
ret: ret,
}
*/
r := <-ret
if r.ret == 0 { // failure
panic(fmt.Sprintf("error displaying message box to user: %v\nstyle: 0x%08X\ntitle: %q\ntext:\n%s", r.err, uType, os.Args[0], text))