[Gtk4] Deprecate "single click activate"
I swear this is the last nitpick I have about the Gtk4 tree- and listviews.
The single-click-activate
property of ListView, GridView and ColumnView does more than the name would suggest. It also enables "select on hover". As far as I can see there is no way to get one without the other. In my case I would like to only have "activate on single click".
Working with selection alone is not sufficient for my use case. Even when a row is already selected, another single click on that row should trigger a switch to the article when the window scaled down to phone size. Since the row is already selected the selection-changed
signal can't be used for that.
And giving every row a GestureClick seems overkill when the ListView could already take care of this. (if it wasn't for that unwanted "select on hover" that you would have to trade for it)
In addition the property seems inconsistent with the older lists of Gtk. FlowBox, ListBox, IconView and TreeView all have a slightly different named property called activate-on-single-click
(compared to the newer single-click-activate
) that doesn't come with the side effect of "select on hover".
I'm not sure what the policies about breaking these properties in a minor release are. But to me the logical conclusion would be to split out the hover-selection into its own property and to rename single-click-activate
-> activate-on-single-click
to make it consistent with the older widgets.
edit: How about adding activate-on-single-click
and select-on-hover
, keep single-click-activate
but mark it as depricated and have it set the two new properties? This wouldn't break applications already making use of single-click-activate
.
Again, if the maintainers of Gtk are willing to accept such a change I would be willing to work on it. Even though it seems to be a task a lot bigger than my 2 previous bite sized contributions.