Re: Promlems with icons on MS-Windows



Joerg Anders writes:
     gtk_window_set_icon(GTK_WINDOW(window), X2XResource::appIcon); 

This works on Linux. On MS-Windows the general Gtk application icon
appears instead.

gtk_window_set_icon() calls gtk_window_set_icon_list(), which calls
gtk_window_realize_icon(), which calls gdk_window_set_icon_list(), and
then gdk_window_set_icon().

gdk_window_set_icon_list() got implemented in gdk/win32 only on
2003-12-13, see http://bugzilla.gnome.org/show_bug.cgi?id=128762 .

Until then, only gdk_window_set_icon() was implemented in gdk/win32,
and this is how it is in GTK+ 2.2.4. But there was a bug in it, see
http://bugzilla.gnome.org/show_bug.cgi?id=128559 . Maybe the bug
prevented it from working properly in all cases, I don't know.

You could fetch a snapshot build of GTK+ for Windows from
www.gimp.org/win32/downloads-20040124.html . Be careful. Unzip the
gtk+ zipfile into a temporary location, and start by moving just the
gdk DLL into place, or course keeping a backup copy of your current
one.

--tml





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