summaryrefslogtreecommitdiff
path: root/redo/dialog_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-30 23:02:02 -0400
committerPietro Gagliardi <[email protected]>2014-08-30 23:02:02 -0400
commit77bf566ebbcb62acd4d08d905d9542d6ff9b6b80 (patch)
treeeeb8e72bc3bf57f5be7f0c0af4319189ac6de838 /redo/dialog_windows.go
parent155899c65ed32245e2ccad4197a10c77017d835b (diff)
...in with the new.
Diffstat (limited to 'redo/dialog_windows.go')
-rw-r--r--redo/dialog_windows.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/redo/dialog_windows.go b/redo/dialog_windows.go
deleted file mode 100644
index 80f7ac6..0000000
--- a/redo/dialog_windows.go
+++ /dev/null
@@ -1,25 +0,0 @@
-// 18 august 2014
-
-package ui
-
-import (
- "unsafe"
-)
-
-// #include "winapi_windows.h"
-import "C"
-
-func (w *window) openFile(f func(filename string)) {
- C.openFile(w.hwnd, unsafe.Pointer(&f))
-}
-
-//export finishOpenFile
-func finishOpenFile(name *C.WCHAR, fp unsafe.Pointer) {
- f := (*func(string))(fp)
- if name == nil {
- (*f)("")
- return
- }
- defer C.free(unsafe.Pointer(name))
- (*f)(wstrToString(name))
-}