[maemo-developers] Problem to setup an icon to an application

From: Marius Gedminas marius at pov.lt
Date: Thu Jul 3 16:45:18 EEST 2008
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20080703/9c33e4c8/attachment.pgp 
More information about the maemo-developers mailing list