I need the item to be activated on double-click / Return only
what you are observing?
The item is activated as soon as it is selected.
By the lack of warnings or errors, I already suspected that I did not understand what this property does, and that’s apparently the case. Is there another property I overlooked that would allow me to achieve what I need?
The single-click-activate property is already false by default, so setting it to False won’t do anything.
Oh, I get it : This property toggles the behaviour between “activate on hover” and “activate on click” so OK, this is covered, but how can I set the behaviour to “activate on double click”? I’m only asking because I didn’t find the answer anywhere, starting from the documentation. I looked at the Selection() properties too, but no luck.
Suddenly I’m thinking that what I want to do may simply be impossible, due to the tactile orientation of Gtk4 (or maybe just Adwaita) is that it? Because that would be a perfectly acceptable answer…?
I don’t think that that’s correct. If single-click-activate is False, then I believe GtkListView should already display the behaviour you want: double-click activate (or Enter), single-click select.
Maybe this is a problem with the GtkListItem instead. The GtkListView properties control how activation/selection work, but GtkListItem:activatable and GtkListItem:selectable control when those are enabled for a row.
Ok, I found out ; I was using the selection-changed signal, and was wondering why my callback fired on selection change, because I’m an idiot. Thanks a lot for your patience.
I don’t think that that’s correct. If single-click-activate is False, then I believe GtkListView should already display the behaviour you want: double-click activate (or Enter), single-click select.