FileDialog.selectFolder

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 propertyGtk.FileDialog:initial-folder.

The callback will be called when the dialog is dismissed. It should call gtk.file_dialog.FileDialog.selectFolderFinish to obtain the result.

class FileDialog
void
selectFolder

Parameters

parent gtk.window.Window
cancellable gio.cancellable.Cancellable

a gio.cancellable.Cancellable to cancel the operation

callback gio.types.AsyncReadyCallback

a callback to call when the operation is complete