Gtk.FileChooser.prototype.get_preview_filename

function get_preview_filename():filename {
    // Gjs wrapper for gtk_file_chooser_get_preview_filename()
}

Gets the filename that should be previewed in a custom preview widget. See Gtk.set_preview_widget.

Since 2.4

Returns

the filename to preview, or null if no file is selected, or if the selected file cannot be represented as a local filename. Free with GLib.free