From: Marcus Pedersén <marcus.pedersen@co...> - 2009-06-24 19:09:48
I am a real newbee.
I have a .gif file that I want to use as an icon in my window.
I get the image with: imageNewFromFile
But the window want a pixbuf-: windowIcon
How do I convert my image to a pixbuf?
Do I just get everything wrong?
Many thanks in advance!
> I have a .gif file that I want to use as an icon in my window.
> I get the image with: imageNewFromFile
> But the window want a pixbuf-: windowIcon
You can actually load your picture directly to a
pixbuf with pixbufNewFromFile:
Use Image only when you want an image to be shown
inside your window, in one of its child widgets. (Then
you would probably use a few layout widgets to place
many widgets inside your window, and then one of those
would be your Image.)