get_nth_bookmark


Description:

[ Version ( since = "3.10" ) ]
public File? get_nth_bookmark (int n)

This function queries the bookmarks added by the user to the places sidebar, and returns one of them.

This function is used by FileChooser to implement the “Alt-1”, “Alt-2”, etc. shortcuts, which activate the cooresponding bookmark.

Parameters:

this

a places sidebar

n

index of the bookmark to query

Returns:

The bookmark specified by the index n, or null 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".




2022 vala-language.org