Update in light of recent deprecations.

GTK has deprecated more functions. This change makes the needed changes
to avoid newer GTKs breaking the build.