Bug 362041 - Using Breeze icon theme with Gtk will have some warning
Summary: Using Breeze icon theme with Gtk will have some warning
Status: RESOLVED FIXED
Alias: None
Product: Breeze
Classification: Plasma
Component: Icons (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: visual-design
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-21 15:00 UTC by Weng Xuetian
Modified: 2016-08-14 10:25 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.23


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Weng Xuetian 2016-04-21 15:00:57 UTC
When using breeze icon with gtk, gtk will output following warnings. Don't know if this actually affects any functionality.

(thunderbird:10201): Gtk-WARNING **: Theme directory actions/48 of theme breeze has no size field
(thunderbird:10201): Gtk-WARNING **: Theme directory categories/16 of theme breeze has no size field
(thunderbird:10201): Gtk-WARNING **: Theme directory categories/22 of theme breeze has no size field
(thunderbird:10201): Gtk-WARNING **: Theme directory categories/48 of theme breeze has no size field
(thunderbird:10201): Gtk-WARNING **: Theme directory devices/48 of theme breeze has no size field

Reproducible: Always

Steps to Reproduce:
1. Set icon theme to breeze
2. launch a gtk app

Actual Results:  
gtk outputs some warnings.

Expected Results:  
no warning.
Comment 1 Rex Dieter 2016-04-25 14:16:59 UTC
Seems one cause for this warning is that breeze/index.theme includes stuff like:

Directories=...,categories/16,...

but no actual categories/16 dir or [categories/16] section in index.theme either

(same for the other warnings)

which should be easy enough to cleanup
Comment 2 Hatto Von Hatzfeld 2016-05-07 12:37:58 UTC
My workaround:

cd /usr/share/icons/breeze

Edit index.theme and delete all not existing folders in the line starting with "Directories="
With other words: Replace that line by the output of:
t=`ls -d1 */* | tr '\n' ','`; echo Directories=${t%,}
Comment 3 Hatto Von Hatzfeld 2016-05-07 12:42:58 UTC
I have forgotten one thing: After editing index.theme it may be helpful (or even necessary?) to execute this in the same folder/directory:
gtk-update-icon-cache .
Comment 4 andreas 2016-05-16 13:47:57 UTC
ok I think now it should work, please check and close the bug report.
Comment 5 Rex Dieter 2016-05-16 18:33:00 UTC
I'm still getting the same warnings with recently-released breeze-icons-5.22.0
Comment 6 Rex Dieter 2016-05-16 18:45:03 UTC
Ah, looks like it was fixed after 5.22 release,
https://quickgit.kde.org/?p=breeze-icons.git&a=commit&h=2c3510f42e7109a4452dd1aba67bf1719c7e9464