Gtk.IconView.prototype.path_is_selected

function path_is_selected(path:Gtk.TreePath):Boolean {
    // Gjs wrapper for gtk_icon_view_path_is_selected()
}

Returns true if the icon pointed to by path is currently selected. If path does not point to a valid location, false is returned.

Since 2.6

path

A Gtk.TreePath to check selection on.

Returns

true if path is selected.