temporary fix for new Gtk.GLib
a bit of a hack, but pretty fast