Fix for older Gtk+ versions