Redesign the preferences model
While I overall like how preferences work in libhandy, I think it should be improved a bit.
Currently, preferences can only be implemented via AdwPreferencesRow
which is a bit limiting: perfecty valid preferences are sometimes added as widgets not inheriting it, and for very good reasons. But because of that, they don't appear in the window's searches, which is a bit limiting.
What about having a AdwPreference
interface that could be implemented by any widget and that AdwPreferencesGroup
could look for via a depth-first search? Probably not going deeper when hitting a widget implementing that interface.
Edited by Adrien Plazas