Out of interest, why do you do this, other than for the purpose of
making test runs to see what may lie ahead with gtk+-4.0?
to run. The reasons why the original poster's code failed to work
appears to be that he was not using the function calls correctly,
irrespective of version number or deprecation.