get_location


Description:

[ Version ( since = "3.10" ) ]
public File? get_location ()

Gets the currently selected location in the this.

This can be null when nothing is selected, for example, when set_location has been called with a location that is not among the sidebar’s list of places to show.

You can use this function to get the selection in the this. Also, if you connect to the populate_popup signal, you can use this function to get the location that is being referred to during the callbacks for your menu items.

Parameters:

this

a places sidebar

Returns:

a File with the selected location, or null if nothing is visually selected.




2022 vala-language.org