window icons
Tor Lillqvist <[email protected]> Fri, 24 Jan 2003 21:56:38 +0000
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <[email protected]> |
"alex_shaduri <[email protected]>" <[email protected]> writes: > gtk_window_set_icon (GTK_WINDOW(g_main_window), icon); The code for gdk_window_set_icon has this comment: /* Nothing to do, really. As we share window classes between windows * we can't have window-specific icons, sorry. Don't print any warning * either. */ So, at the present you just cannot do it. (If somebody can figure out a way to do it, please send in patches.) You *can* set an icon for *all* of an application's windows, though, by simply including an icon in the .exe file's resources. The first icon will be used for the application's windows. (Yeah, this is rather undocumented, you will have to read the source to find out.) This is how GIMP's icon is set. --tml To Post a message, send it to: [email protected] To Unsubscribe, send a blank message to: [email protected] Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/