SingleSelection.setSelected

void setSelected(uint position)

Selects the item at the given position.

If the list does not have an item at position or gtk.types.INVALID_LIST_POSITION is given, the behavior depends on the value of the gtk.single_selection.SingleSelection.autoselect property: If it is set, no change will occur and the old item will stay selected. If it is unset, the selection will be unset and no item will be selected.

Parameters

positionthe item to select or gtk.types.INVALID_LIST_POSITION