don't use deprecated gdk threads api