set_can_unselect


Description:

public void set_can_unselect (bool can_unselect)

If true, unselecting the current item via 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.

Parameters:

this

a `GtkSingleSelection`

can_unselect

true to allow unselecting