[maemo-developers] Maemo icons

From: Aniello Del Sorbo anidel at gmail.com
Date: Wed Apr 9 12:07:22 EEST 2008
Hi,

I do have another issue with Xournal and its icons.

After much digging on google and documentation files I arrived at this
conclusion:

I should put in the Makefile.am something like:

icon_26x26_DATA = icons/26x26/xoournal.png

and it should automagically put this icon in the following path:

/usr/share/icons/hicolor/26x26/hildon

I checked the "tomiphy" applications and it only specified the source file
and let the debhelpers (I think) do everything else.
The tomiphy icon show correcly in the Task Navigator AND in the Menu.

I did try the same, but it complained about "icon_26x26dir" missing.
Well my Makefile.am is a patched one, so I might have well "ruined" the
magic somehow, so I went on and specified where
I wanted my icons to be stored.
This is what I do in the Makefile.am:

icon_26x26_DATA=pixmaps/26x26/xournal.png
icon_26x26dir=$(prefix)/share/icons/hicolor/26x26/hildon
icon_40x40_DATA=pixmaps/40x40/xournal.png
icon_40x40dir=$(prefix)/share/icons/hicolor/40x40/hildon
icon_scalable_DATA=pixmaps/scalable/xournal.png
icon_scalabledir=$(prefix)/share/icons/hicolor/scalable/hildon

(where "prefix" is /usr)

The icon in the Menu is mostly fine. Not as small as for the bug 2568 (
https://bugs.maemo.org/show_bug.cgi?id=2568), but
still smaller than the others.
Anyway my main issue is that the Task Navigator icon is STILL the default
one and not xournal.png

I checked Tomiphy code but it DOES not set any icon for the application
anywhere.
I then thought that Maemo would use the one pointed by the .desktop file and
removed the code to set the window icon:

/* gtk_window_set_icon(GTK_WINDOW(winMain), create_pixbuf("xournal.png"));*/

but it did not help.

What should I do to make that icon appear correctly ?

PS: I do, in the xournal.postinst file, the icon cache update:

gtk-update-icon-cache -f /usr/share/icons/hicolor

-- 
anidel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20080409/22574d58/attachment.htm 
More information about the maemo-developers mailing list