Fix deprecation errors that arise using GTK+ 3.14.