diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-30 23:02:02 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-30 23:02:02 -0400 |
| commit | 77bf566ebbcb62acd4d08d905d9542d6ff9b6b80 (patch) | |
| tree | eeb8e72bc3bf57f5be7f0c0af4319189ac6de838 /redo/dialog_darwin.go | |
| parent | 155899c65ed32245e2ccad4197a10c77017d835b (diff) | |
...in with the new.
Diffstat (limited to 'redo/dialog_darwin.go')
| -rw-r--r-- | redo/dialog_darwin.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/redo/dialog_darwin.go b/redo/dialog_darwin.go deleted file mode 100644 index f1882a8..0000000 --- a/redo/dialog_darwin.go +++ /dev/null @@ -1,25 +0,0 @@ -// 19 august 2014 - -package ui - -import ( - "unsafe" -) - -// #include "objc_darwin.h" -import "C" - -func (w *window) openFile(f func(filename string)) { - C.openFile(w.id, unsafe.Pointer(&f)) -} - -//export finishOpenFile -func finishOpenFile(fname *C.char, data unsafe.Pointer) { - f := (*func(string))(data) - if fname == nil { - (*f)("") - return - } - defer C.free(unsafe.Pointer(fname)) - (*f)(C.GoString(fname)) -} |
