get_file


Description:

public File? get_file ()

Gets the `GFile` for the currently selected file in the file selector.

Note:

Use [class@Gtk.FileDialog] instead

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

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

Parameters:

this

a `GtkFileChooser`

Returns:

a selected `GFile`. You own the returned file; use unref to release it.