Commit 09bc505b authored by sqweek's avatar sqweek
Browse files

linux: implement directory browse dialog

Closes #10.
parent e67d259d
......@@ -21,9 +21,9 @@ an additional dialog is spawned to confirm they want to overwrite the existing f
directory, err := dialog.Directory().Title("Load images").Browse()
Asks the user for a directory. The directory dialog is **only supported on Windows** for now.
Asks the user for a directory.
# platform details
* OSX: uses Cocoa's NSAlert/NSSavePanel/SOpenPanel clasess
* OSX: uses Cocoa's NSAlert/NSSavePanel/NSOpenPanel clasess
* Win32: uses MessageBox/GetOpenFileName/GetSaveFileName (via package
* Linux: uses Gtk's MessageDialog/FileChooserDialog (via package
......@@ -82,5 +82,5 @@ func chooseFile(title string, action gtk.FileChooserAction, b *FileBuilder) (str
func (b *DirectoryBuilder) browse() (string, error) {
panic("not implemented")
return chooseFile("Open Directory", gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER, &FileBuilder{Dlg: b.Dlg})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment