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

From: Torello Querci tquerci at gmail.com
Date: Thu Jul 3 19:10:26 EEST 2008
2008/7/3 Marius Gedminas <marius at pov.lt>:
> 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.
Ok, I try using both and not work

>
> I strongly suspect the relative pathname is not going to work.  You
> should pass an absolute filename, such as "/usr/share/myapp/icon.png".
I try this solution, but if the GTK not find the image I got an error
message on console. Again not work.

>
> 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.
On the Bora enviroment I was able to setup the application icon on the runtime.
Now I use the same method and not work, but the problem can be on the
environmante that I use.
So I try to "write" (write ..... simply add a line of code :) ) to
test to set the Icon using C code.
I try to setup the Icon, X-Window-Icon and X-Window-Icon-Dimmed
proerty in .desktop file and the icon is right in the Maemo menu but
is the generic one in the taskbar.

>
> Now you have three things to check, any of which could be the cause why
> your icon is missing.
I try but something is wrong .. :(


Bye, Torello.

More information about the maemo-developers mailing list