SingleSelection.setCanUnselect

If %TRUE, unselecting the current item via gtk_selection_model_unselect_item() is supported.

Note that setting [property@Gtk.SingleSelection:autoselect] will cause unselecting to not work, so it practically makes no sense to set both at the same time the same time.

class SingleSelection
void
setCanUnselect

Parameters

canUnselect bool

%TRUE to allow unselecting

Meta