summaryrefslogtreecommitdiff
path: root/dialog_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-30 20:36:30 -0400
committerPietro Gagliardi <[email protected]>2014-06-30 20:36:30 -0400
commit496df12751b029caa7dbbb9480c1a81f242f1c6d (patch)
tree007c5e81bce1b0a459b694affb7ad4c9b0b24c0f /dialog_windows.go
parent33155f7496a818a1ed83fe49cccb63be7842bc81 (diff)
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.
Diffstat (limited to 'dialog_windows.go')
-rw-r--r--dialog_windows.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/dialog_windows.go b/dialog_windows.go
index c6da94b..655aa8b 100644
--- a/dialog_windows.go
+++ b/dialog_windows.go
@@ -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))