Package: gtk

Function gtk-file-chooser-current-folder

Lambda List

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

Syntax

(gtk-file-chooser-current-folder chooser) => filename
(setf (gtk-file-chooser-current-folder chooser) filename)

Arguments

chooser -- a gtk-file-chooser widget
filename -- a string with the full path of the new current folder

Details

Accessor of the current folder of the file chooser.

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, e.g. /home/username/Documents, which is not the same as the currently selected folder if the chooser is in :select-folder mode, e.g. /home/username/Documents/selected-folder/. To get the currently selected folder in that mode, use the gtk-file-chooser-uri function as the usual way to get the selection.

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

See also

*2021-2-5