On Thu, Jul 03, 2008 at 03:32:19PM +0200, Torello Querci wrote: > I try to set an icon file to a my application. The program seem to run > fine without error on console but the icon still the same, the generic > application icon setup by default. > > This is a sample file taken from maemo tutorial where I add the > > gtk_window_set_icon_from_file(window,"icona.ico",NULL);
Is the .ico format even supported by Gtk+? Usually people use .png. I strongly suspect the relative pathname is not going to work. You should pass an absolute filename, such as "/usr/share/myapp/icon.png". Also, I believe the window manager in Maemo (matchbox) wants to determine the icon from the .desktop file corresponding to your app, rather than from the _NET_WM_ICON property that gtk_window_set_icon_from_file. Now you have three things to check, any of which could be the cause why your icon is missing. Marius Gedminas -- C is for Cookies. Perl is even better for Cookies.
signature.asc
Description: Digital signature
_______________________________________________ maemo-developers mailing list [email protected] https://lists.maemo.org/mailman/listinfo/maemo-developers
