Package: gtk

Function gtk:file-chooser-current-folder

Lambda List

gtk:file-chooser-current-folder (chooser)

Syntax

(gtk:file-chooser-current-folder chooser) => path
(setf (gtk:file-chooser-current-folder chooser) path)

Arguments

chooser -- a gtk:file-chooser widget
path -- a pathname or namestring with the full path of the new current folder

Details

The gtk:file-chooser-current-folder function gets the current folder of the file chooser as a local filename. The (setf gtk:file-chooser-current-folder) function sets the current folder.

The user will be shown the full contents of the current folder, plus user interface elements for navigating to other folders.

Note that this is the folder that the file chooser is currently displaying, for example, /home/username/Documents, which is not the same as the currently selected folder if the chooser is in :select-folder mode, for example, /home/username/Documents/selected-folder/.

In general, you should not use this function. See the section on setting up a file chooser dialog for the rationale behind this.

Warning

The gtk:file-chooser implementation is deprecated since 4.10. Use the gtk:file-dialog object instead.
 

See also

2024-11-21