Gtk.TreeView.prototype.set_cursor_on_cell

function set_cursor_on_cell(path:Gtk.TreePath, focus_column:Gtk.TreeViewColumn, focus_cell:Gtk.CellRenderer, start_editing:Boolean):void {
    // Gjs wrapper for gtk_tree_view_set_cursor_on_cell()
}

Sets the current keyboard focus to be at path, and selects it. This is useful when you want to focus the user's attention on a particular row. If focus_column is not null, then focus is given to the column specified by it. If focus_column and focus_cell are not null, and focus_column contains 2 or more editable or activatable cells, then focus is given to the cell specified by focus_cell. Additionally, if focus_column is specified, and start_editing is true, then editing should be started in the specified cell. This function is often followed by @gtk_widget_grab_focus (tree_view) in order to give keyboard focus to the widget. Please note that editing can only happen when the widget is realized.

If path is invalid for @model, the current cursor (if any) will be unset and the function will return without failing.

Since 2.2

path

A Gtk.TreePath

focus_column

A Gtk.TreeViewColumn, or null

focus_cell

A Gtk.CellRenderer, or null

start_editing

true if the specified cell should start being edited.