The source project of this merge request has been removed.
sidebar: Improve items look and interactions
I created a CategoryRow
widget inspired by GtkTreeExpander
(for the functionality) and AdwExpanderRow
(for the look).
There's also SingleSelectionManual
which basically works the same as GtkSingleSelection
, except to change the selection you can only use set_selected
and not GtkSelectionModel::select_item
. That prevents the default behavior of GtkListView
to change the selection when navigating with the up and down arrows. Now the selection changes only on activate (single click or Enter
key).
I put some comments in the code where it was probably hard to guess why this code is necessary.
Closes #749 (closed)