Make Emacs compile when Gtk+ and -DGTK_DISABLE_DEPRECATED is used.