Re: how to set icon for gtk app on windows?

I found a way to do that, maybe someone will need it too.

You have to create a resource file that references your icon.

--- begin foo.rc ---
1 ICON "foo.ico"
--- end foo.rc ---

Then compile this file with windres

windres foo.rc fooicon.o

Then link your program.

gcc -o foo.exe -mwindows foo.o fooicon.o ...

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]