Ignore deprecation for gtk_style_context_invalidate()

The style context must explicitly be invalidated, because sometimes we
request a value directly.

With GTK+ 4, normally we can just remove the calls to invalidate().