summaryrefslogtreecommitdiff
path: root/dialog_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'dialog_unix.go')
-rw-r--r--dialog_unix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dialog_unix.go b/dialog_unix.go
index 777dfb1..c908910 100644
--- a/dialog_unix.go
+++ b/dialog_unix.go
@@ -25,7 +25,7 @@ import "C"
func (w *window) openFile(f func(filename string)) {
widget := C.newOpenFileDialog(w.window)
window := (*C.GtkWindow)(unsafe.Pointer(widget))
- dialog := (*C.GtkDialog)(unsafe.Pointer(widget))
+ dialog := (*C.GtkDialog)(unsafe.Pointer(widget))
fc := (*C.GtkFileChooser)(unsafe.Pointer(widget))
// non-local filenames are relevant mainly to GIO where we can open *anything*, not to Go os.File; see https://twitter.com/braket/status/506142849654870016
C.gtk_file_chooser_set_local_only(fc, C.TRUE)