summaryrefslogtreecommitdiff
path: root/stddialogs.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2018-08-26 09:55:07 -0400
committerPietro Gagliardi <[email protected]>2018-08-26 09:55:07 -0400
commit62ac2527732a01dfa6bd2c9523215c0ba3816641 (patch)
tree84244a69e048f79e4d9f134c121f4cf581200986 /stddialogs.go
parenta5a00c644c08a6e0f52740c3f2a280977929a285 (diff)
Moved all the Go files out of the way again, this time so we can migrate them to more proper cgo usage.
Diffstat (limited to 'stddialogs.go')
-rw-r--r--stddialogs.go41
1 files changed, 0 insertions, 41 deletions
diff --git a/stddialogs.go b/stddialogs.go
deleted file mode 100644
index 0ff8a01..0000000
--- a/stddialogs.go
+++ /dev/null
@@ -1,41 +0,0 @@
-// 20 december 2015
-
-package ui
-
-// #include "ui.h"
-import "C"
-
-// TODO
-func MsgBoxError(w *Window, title string, description string) {
- ctitle := C.CString(title)
- defer freestr(ctitle)
- cdescription := C.CString(description)
- defer freestr(cdescription)
- C.uiMsgBoxError(w.w, ctitle, cdescription)
-}
-
-func OpenFile(w *Window) string {
- cname := C.uiOpenFile(w.w)
- if cname == nil {
- return ""
- }
- defer C.uiFreeText(cname)
- return C.GoString(cname)
-}
-
-func SaveFile(w *Window) string {
- cname := C.uiSaveFile(w.w)
- if cname == nil {
- return ""
- }
- defer C.uiFreeText(cname)
- return C.GoString(cname)
-}
-
-func MsgBox(w *Window, title string, description string) {
- ctitle := C.CString(title)
- defer freestr(ctitle)
- cdescription := C.CString(description)
- defer freestr(cdescription)
- C.uiMsgBox(w.w, ctitle, cdescription)
-}