Various fixes for gtk3 demo

Note that I only fixed deprecations, I have not yet tested the demos.