Hello, I'm experimenting with mingw to compile gtk apps on win32. How
can icon can be inserted to a gtk win32 exe ? Is there a function that
do such thing?
If your icon is in a file called "my_icon.ico", create yourself an "rc" file
with the following single-line content:
1 ICON "my_icon.ico"
Then run:
windres my_icon.rc my_icon.o
This effectively "compiles" the icon file into a normal object file.
You can then link your "my_icon.o" object file into your .exe as normal
using gcc.
(I got most of this info a long time ago from previous mailing list
discussions of the same thing, so you might like to search the archives for
"windres" or "icons" for more details).
Hope that helps,
Richard.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list