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

parentthe parent gtk.window.Window
cancellablea gio.cancellable.Cancellable to cancel the operation
callbacka callback to call when the operation is complete