set_selected


Description:

public void set_selected (uint position)

Selects the item at the given position.

If the list does not have an item at position or gtk_invalid_list_position is given, the behavior depends on the value of the [property@Gtk.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:

this

a `GtkSingleSelection`

position

the item to select or gtk_invalid_list_position