Gently heat the fish or vegetable stock in a saucepan. Peel and finely chop the onion, then fry gently in the butter in a broad, heavy-bottomed pan. When the onion is soft and translucent, but before it colours, add the rice and briefly stir it through the butter to coat the grains.