Package: gtk

Function gtk-tree-view-set-cursor-on-cell

Lambda List

gtk-tree-view-set-cursor-on-cell (view path &key focus cell start)

Arguments

view -- a gtk-tree-view widget
path -- a gtk-tree-path instance
focus -- a gtk-tree-view-column, or nil
cell -- a gtk-cell-renderer, or nil
start -- true if the specified cell should start being edited

Details

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 the argument focus is not nil, then focus is given to the column specified by it. If focus and cell are not nil, and focus contains 2 or more editable or activatable cells, then focus is given to the cell specified by cell. Additionally, if focus is specified, and start is true, then editing should be started in the specified cell. This function is often followed by the function gtk-widget-grab-focus in order to give keyboard focus to the widget. Please note that editing can only happen when the tree view is realized.

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

See also

2021-2-26