diff options
| author | Pietro Gagliardi <[email protected]> | 2015-12-11 20:37:59 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-12-11 20:37:59 -0500 |
| commit | f8e3f12ab02b528f2a05a4f713d7af7ea8e44b42 (patch) | |
| tree | 82dedf4d37f0f6d31e88ebb2ca1ce6499dead261 /dialog.go | |
| parent | e34c561ed5bedeb180437ec165882b98d70d38c1 (diff) | |
LET'S GET THIS FINAL REWRITE EVER STARTED
Diffstat (limited to 'dialog.go')
| -rw-r--r-- | dialog.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/dialog.go b/dialog.go deleted file mode 100644 index 730e1be..0000000 --- a/dialog.go +++ /dev/null @@ -1,21 +0,0 @@ -// 18 august 2014 - -package ui - -type windowDialog interface { - openFile(f func(filename string)) -} - -// OpenFile opens a dialog box that asks the user to choose a file. -// The dialog box is modal to win, which mut not be nil. -// Some time after the dialog box is closed, OpenFile runs f on the main thread, passing filename. -// filename is the selected filename, or an empty string if no file was chosen. -// OpenFile does not ensure that f remains alive; the programmer is responsible for this. -// If possible on a given system, OpenFile() will not dereference links; it will return the link file itself. -// Hidden files will not be hidden by OpenFile(). -func OpenFile(win Window, f func(filename string)) { - if win == nil { - panic("Window passed to OpenFile() cannot be nil") - } - win.openFile(f) -} |
