Use less deprecated code with Gtk+ >= 3.4