diff options
| author | Pietro Gagliardi <[email protected]> | 2015-12-20 18:35:01 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-12-20 18:35:01 -0500 |
| commit | 01893daaf19c3617b65820a7e1febdfa02beb389 (patch) | |
| tree | dc2b20c5f6a373d76da5ac133eb26657fc1ac393 | |
| parent | e62ee4977038fd47155390099ea5a9e727ccd1e9 (diff) | |
I need MsgBoxError() for something, so threw it in.
| -rw-r--r-- | stddialogs.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/stddialogs.go b/stddialogs.go new file mode 100644 index 0000000..ba8c10d --- /dev/null +++ b/stddialogs.go @@ -0,0 +1,16 @@ +// 20 december 2015 +package ui + +// #include "ui.h" +import "C" + +// TODO OpenFile, SaveFile, MsgBox + +// TODO +func MsgBoxError(w *Window, title string, description string) { + ctitle := C.CString(title) + cdescription := C.CString(description) + C.uiMsgBoxError(w.w, ctitle, cdescription) + freestr(ctitle) + freestr(cdescription) +} |
