LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   gtk+-3 Button Boxes no icons (https://www.linuxquestions.org/questions/linux-from-scratch-13/gtk-3-button-boxes-no-icons-4175487981/)

re_nelson 12-14-2013 08:16 PM

gtk+-3 Button Boxes no icons
 
2 Attachment(s)
This cosmetic issue has perplexed me for quite some time today. Launching gtk3-demo and then selecting the Button Boxes menu item shows no icon on the button on my LFS system. The gtk+-3.10.6 build was error free and all of these theme and icon related files are installed:

Code:

gnome-icon-theme-3.10.0
gnome-icon-theme-extras-3.6.2
gnome-icon-theme-symbolic-3.10.0
gnome-themes-standard-3.10.0
hicolor-icon-theme-0.12
icon-naming-utils-0.8.90
oxygen-icons-4.11.4
sound-theme-freedesktop-0.8
xcursor-themes-1.0.4

The one and only /etc/gtk-3.0/settings.ini file (there are no per-user files) has this content:

Code:

[Settings]
gtk-theme-name = Adwaita
gtk-fallback-icon-theme = default

I've also tried other valid theme values and explicitly setting "gtk-icon-theme-name = gnome" with no success.

One of the two images shows the missing icons not only on LFS but also Arch Linux and OpenSUSE-13.1 as well. The image with the icons present is from Slackware-14.1 but also Gentoo-2.2 and FreeBSD-9.2 populate the buttons with icons. Also note that a little drag widget is present on the bottom right corner of the image showing icons.

I've tried this as root and as myself, an ordinary user, from KDE4, Trinity-3.15, mwm and twm to no avail. That one menu item is the only one from the demo where icons aren't present.

These icon directories are all present, world-readable and populated with current icon-theme.cache files.

Code:

/usr/share/icons/gnome
/usr/share/icons/hicolor
/usr/share/icons/HighContrast
/usr/share/icons/mono
/usr/share/icons/nuvola
/usr/share/icons/oxygen

Running an strace on gtk3-demo when Button Boxes is selected on LFS (as well as the other two systems, Arch and OpenSUSE) reveals that none of those icon directories is ever opened or stat'd.

Even if you don't have any guidance, I'd like to know what happens on your LFS system when you run gtk3-demo. Oh...and by the way...no such problems with gtk-demo from the gtk+-2.24.2 package. All icons are present.

turtleli 12-15-2013 01:13 PM

The icons were part of the GTK Stock Items, which is deprecated in GTK+ 3.10. They've updated the demos so that the Stock Items aren't used anymore.

I'm guessing ArchLinux and OpenSUSE are using GTK+3.10.x, Slackware-14.1 uses GTK+3.8.2 and therefore has the older demo version which still has the icons.

re_nelson 12-15-2013 05:03 PM

Quote:

Originally Posted by turtleli (Post 5081110)
The icons were part of the GTK Stock Items, which is deprecated in GTK+ 3.10. They've updated the demos so that the Stock Items aren't used anymore.

Thank you very much. I had fallen down into the spider hole of checking for the obscure with comparing all of the nuances of the systems and doing line-by-line analysis of strace that I didn't even bother to check the versions. A real doh! on my part. And I'm also guilty of not checking the NEWS file in gtk+3-3.10.6 which deals with that very matter as does this URL:

http://gtk.10911.n7.nabble.com/Stock...n-td81617.html


All times are GMT -5. The time now is 08:25 AM.