get_uri


Description:

[ Version ( since = "2.4" ) ]
public string? get_uri ()

Gets the URI for the currently selected file in the file selector.

If multiple files are selected, one of the filenames will be returned at random.

If the file chooser is in folder mode, this function returns the selected folder.

Parameters:

this

a FileChooser

Returns:

The currently selected URI, or null if no file is selected. If set_local_only is set to true (the default) a local URI will be returned for any FUSE locations. Free with g_free