Soften the onion in half the oil, add the pine nuts until golden, then the rice and stir for two minutes.