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:
parent
33155f7496
commit
496df12751
|
@ -30,6 +30,7 @@ func _msgBox(parent *Window, primarytext string, secondarytext string, uType uin
|
||||||
go func() {
|
go func() {
|
||||||
ret := make(chan uiret)
|
ret := make(chan uiret)
|
||||||
defer close(ret)
|
defer close(ret)
|
||||||
|
/* TODO
|
||||||
uitask <- &uimsg{
|
uitask <- &uimsg{
|
||||||
call: _messageBox,
|
call: _messageBox,
|
||||||
p: []uintptr{
|
p: []uintptr{
|
||||||
|
@ -40,6 +41,7 @@ func _msgBox(parent *Window, primarytext string, secondarytext string, uType uin
|
||||||
},
|
},
|
||||||
ret: ret,
|
ret: ret,
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
r := <-ret
|
r := <-ret
|
||||||
if r.ret == 0 { // failure
|
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))
|
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))
|
||||||
|
|
Loading…
Reference in New Issue