Package: gtk

Function gtk:places-sidebar-nth-bookmark

Lambda List

gtk:places-sidebar-nth-bookmark (sidebar n)

Arguments

sidebar -- a gtk:places-sidebar widget
n -- an integer with the index of bookmark to query

Return Value

An namestring with the bookmark specified by the index n, or nil if no such index exist. Note that the indices start at 0, even though the file chooser starts them with the keyboard shortcut Alt-1.

Details

This function queries the bookmarks added by the user to the places sidebar, and returns one of them. This function is used by the gtk:file-chooser widget to implement the Alt-1, Alt-2, etc. shortcuts, which activate the cooresponding bookmark.
 

See also

#2023-7-13