maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Some GTK Stock Icons missing? (https://talk.maemo.org/showthread.php?t=54858)

jaeezzy 2010-06-02 00:11

Some GTK Stock Icons missing?
 
Hi,
Though I have already mentioned this in the PR1.2 bugs thread and had someone confirm it as well, I still thought to start a new thread for it as I'm not sure if its actually a bug or just me.
I have application using GTK_STOCK_DIRECTORY and GTK_STOCK_PREFERENCES and before this PR1.2 it had no problems but now the icons are missing. I recompiled quite a number of times in scratchbox(updated) with no success. Anyone else??

ikerrg 2010-06-16 11:41

Re: Some GTK Stock Icons missing?
 
Quote:

Originally Posted by jaeezzy (Post 694985)
Hi,
Though I have already mentioned this in the PR1.2 bugs thread and had someone confirm it as well, I still thought to start a new thread for it as I'm not sure if its actually a bug or just me.
I have application using GTK_STOCK_DIRECTORY and GTK_STOCK_PREFERENCES and before this PR1.2 it had no problems but now the icons are missing. I recompiled quite a number of times in scratchbox(updated) with no success. Anyone else??

Same for me using Password Safe application as user. The GTK_STOCK_ADD does not appear in the lower left zone of the window.

qwerty12 2010-06-16 11:46

Re: Some GTK Stock Icons missing?
 
Why use the stock icons, anyway? They look fugly.

Look at www.forum.nokia.com/document/Maemo_5_Icon_List/ and GtkIconTheme.

gbuergisser 2010-06-19 06:02

Re: Some GTK Stock Icons missing?
 
Using stock icons make sense. The user will recognize buttons with the same function at once.

I'm using Notecase Pro which also uses some stock icons (SAVE and ADD). Both icons are missing. I tried and installed Password Safe; the icon is also missing.

Do you know if this is really a bug? Or some inconsistency reached through software installation/deinstallation?

ikerrg 2010-06-19 07:14

Re: Some GTK Stock Icons missing?
 
I've read anywhere that it is done on purpose (in PR1.2) to reduce the memory use on Maemo. However, this would need new apps to include their own icons or load them in other way.

vlg 2010-07-08 19:37

Re: Some GTK Stock Icons missing?
 
Still bizzare that GTK_STOCK_DELETE and _SAVE are not included.

dbrodie 2010-07-08 19:57

Re: Some GTK Stock Icons missing?
 
I think the proper solution is just to have a package include the needed stock icons, or just symlinks to the already included ones.
For example, GTK_STOCK_ADD could easily just use the 'general_add' (see in the mail app or calendar app).
First we need a list of missing/needed icons.

accumulator 2010-07-18 11:45

Re: Some GTK Stock Icons missing?
 
The osso-icons-default package has messed up stock icons symlinks.

enter as root:

Code:

mv /usr/share/icons/hicolor/48x48/mimetypes/gtk-* /usr/share/icons/hicolor/48x48/hildon/
..and it will be solved.

Added this to bug 10370

dchky 2010-07-18 12:02

Re: Some GTK Stock Icons missing?
 
Cheers accumulator, this actually fixed a boat load of applications - gnumeric, abiword, and on and on.

ikerrg 2010-07-21 11:16

Re: Some GTK Stock Icons missing?
 
Thanks, this fixed all my apps (Password safe, kmplayer ..)

gbuergisser 2010-07-21 11:48

Re: Some GTK Stock Icons missing?
 
Did I get this right? If I mv the mentioned files, all the missing stock icons will be available again?

ikerrg 2010-07-21 13:40

Re: Some GTK Stock Icons missing?
 
Quote:

Originally Posted by gbuergisser (Post 759076)
Did I get this right? If I mv the mentioned files, all the missing stock icons will be available again?

Yes, It worked for my installed apps. And you can revert the changes by just moving back the files, you can try without risk.

Graham Cobb 2010-07-25 11:27

Re: Some GTK Stock Icons missing?
 
Quote:

Originally Posted by accumulator (Post 755694)
enter as root:

Code:

mv /usr/share/icons/hicolor/48x48/mimetypes/gtk-* /usr/share/icons/hicolor/48x48/hildon/
..and it will be solved.

Not quite. The softlink for gtk-delete.png is still wrong!

The correct commands to enter as root are:

Code:

mv /usr/share/icons/hicolor/48x48/mimetypes/gtk-* \
 /usr/share/icons/hicolor/48x48/hildon/
ln -sf general_delete.png \
 /usr/share/icons/hicolor/48x48/hildon/gtk-delete.png


kureyon 2010-07-25 15:14

Re: Some GTK Stock Icons missing?
 
While we're at it, here's my version of the fix:

Code:

sudo gainroot
cd /opt/usr/share/icons/hicolor/48x48/mimetypes
ln -sf ../hildon/general_add.png gtk-add.png
ln -sf ../hildon/general_bold.png gtk-bold.png
ln -sf ../hildon/general_close_b.png gtk-close.png
ln -sf ../hildon/general_delete.png gtk-delete.png
ln -sf ../hildon/general_toolbar_folder.png gtk-directory.png
ln -sf ../hildon/general_search.png gtk-find.png
ln -sf ../hildon/general_fullsize_b.png gtk-fullscreen.png
ln -sf ../hildon/general_back.png gtk-go-back.png
ln -sf ../hildon/pdf_viewer_first_page.png gtk-go-first.png
ln -sf ../hildon/general_forward.png gtk-go-forward.png
ln -sf ../hildon/pdf_viewer_last_page.png gtk-go-last.png
ln -sf ../hildon/filemanager_folder_up.png gtk-go-up.png
ln -sf ../hildon/general_information.png gtk-info.png
ln -sf ../hildon/general_italic.png gtk-italic.png
ln -sf ../hildon/general_move_to_folder.png gtk-jump-to.png
ln -sf ../hildon/general_settings.png gtk-preferences.png
ln -sf ../hildon/general_refresh.png gtk-refresh.png
ln -sf ../hildon/notes_save.png gtk-save.png
ln -sf ../hildon/general_stop.png gtk-stop.png
ln -sf ../hildon/notes_underline.png gtk-underline.png
ln -sf ../hildon/general_undo.png gtk-undo.png
ln -sf ../hildon/pdf_zoomin.png gtk-zoom-in.png
ln -sf ../hildon/pdf_zoomout.png gtk-zoom-out.png

Thanks for the info, now my abiword toolbar icons appear properly :)

Graham Cobb 2010-07-25 18:03

Re: Some GTK Stock Icons missing?
 
I have created a package in extras-devel called "Fix PR1.2 Missing Icons" (fixpr12icons) which creates the symlinks (in /usr/share/icons/hicolor/48x48/hildon/) when it is installed.

ikerrg 2012-09-25 08:30

Re: Some GTK Stock Icons missing?
 
This is not yet fixed in PR1.3.1!! Graham Cobb's commands are still valid for a clean reflashed PR1.3.1 N900.


All times are GMT. The time now is 11:19.

vBulletin® Version 3.8.8