FileDialog.selectFolder
void selectFolder(gtk.window.Window parent = null, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)This function initiates a directory selection operation by presenting a file chooser dialog to the user.
If you pass initial_folder, the file chooser will initially be opened in the parent directory of that folder, otherwise, it will be in the directory gtk.file_dialog.FileDialog.initialFolder.
The callback will be called when the dialog is dismissed. It should call gtk.file_dialog.FileDialog.selectFolderFinish to obtain the result.
Parameters
parent | the parent gtk.window.Window |
cancellable | a gio.cancellable.Cancellable to cancel the operation |
callback | a callback to call when the operation is complete |