Various GTK4 branch backports
More fixes that have accrued on the GTK4 branch that can be backported to master:
- Fix some lambda default-capture warnings.
- Fix silent clang-tidy errors.
- (Mc) Remove
INTERNAL_CAIRO
. s/tittlebar/titlebar
- Remove unnecessary lambdas in
Texture
. - Make
GObjectPtr
safe against self-copy/move. - Add
const_wrap
utility. - Fix palette filename/utf8 handling.