Gtk.TreeSelection.prototype.path_is_selected

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

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

path

A Gtk.TreePath to check selection on.

Returns

true if path is selected.