Use gtk4-builder-tool to validate composite templates
We should use gtk4-builder-tool
to validate composite templates to enure that they are correct and accessibility properties are set correctly.
According to the docs for GtkAccessibility
Application developers using GTK should ensure that their UI controls are accessible as part of the development process. When using GtkBuilder templates and UI definition files, GTK provides a validation tool that verifies that each UI element has a valid role and properties; this tool can be used as part of the application’s test suite to avoid regressions.
Depending on how time intensive it is we can run it in CI or also as a git pre-commit hook.
Edited by Julian Sparber