Gtk.FileChooser.prototype.get_preview_widget_active

function get_preview_widget_active():Boolean {
    // Gjs wrapper for gtk_file_chooser_get_preview_widget_active()
}

Gets whether the preview widget set by Gtk.set_preview_widget should be shown for the current filename. See Gtk.set_preview_widget_active.

Since 2.4

Returns

true if the preview widget is active for the current filename.