From 01893daaf19c3617b65820a7e1febdfa02beb389 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 20 Dec 2015 18:35:01 -0500 Subject: [PATCH] I need MsgBoxError() for something, so threw it in. --- stddialogs.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 stddialogs.go 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) +}