Gtk.IconView.prototype.set_cursor
function set_cursor(path:Gtk.TreePath, cell:Gtk.CellRenderer, start_editing:Boolean):void {
// Gjs wrapper for gtk_icon_view_set_cursor()
}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 item. If cell is not null, then focus is given to the cell specified by it. Additionally, if start_editing is true, then editing should be started in the specified cell.
This function is often followed by <literal>gtk_widget_grab_focus (icon_view)</literal> in order to give keyboard focus to the widget. Please note that editing can only happen when the widget is realized.
Since 2.8
- path
- cell
One of the cell renderers of icon_view, or null
- start_editing
true if the specified cell should start being edited.