Gtk.TreeSelection.prototype.selected_foreach

function selected_foreach(func:Gtk.TreeSelectionForeachFunc):void {
    // Gjs wrapper for gtk_tree_selection_selected_foreach()
}

Calls a function for each selected node. Note that you cannot modify the tree or selection from within this function. As a result, Gtk.TreeSelection.prototype.get_selected_rows might be more useful.

func

The function to call for each selected node.