Bug 469465 - Theme parsing error: gtk.css:1649:16: '-gtk-icon-size' is not a valid property name
Summary: Theme parsing error: gtk.css:1649:16: '-gtk-icon-size' is not a valid propert...
Status: RESOLVED FIXED
Alias: None
Product: Breeze
Classification: Plasma
Component: gtk theme (show other bugs)
Version: 5.27.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-07 23:45 UTC by Bernie Innocenti
Modified: 2023-05-16 18:10 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernie Innocenti 2023-05-07 23:45:40 UTC
SUMMARY

On startup, all GTK-3 apps print a bunch of warnings when using the Breeze theme:

bernie@giskard:~[1]% eog

(eog:157555): Gtk-WARNING **: 16:43:47.616: Theme parsing error: gtk.css:1649:16: '-gtk-icon-size' is not a valid property name

(eog:157555): Gtk-WARNING **: 16:43:47.616: Theme parsing error: gtk.css:1652:16: '-gtk-icon-size' is not a valid property name

(eog:157555): Handy-WARNING **: 16:43:47.691: Using GtkSettings:gtk-application-prefer-dark-theme together with HdyStyleManager is unsupported. Please use HdyStyleManager:color-scheme instead.

(eog:157555): Gtk-WARNING **: 16:43:47.696: Theme parsing error: gtk.css:1649:16: '-gtk-icon-size' is not a valid property name


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 38 with Plasma 5.27.4
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105
Qt Version: 5.15.9
Comment 1 Nate Graham 2023-05-15 20:07:58 UTC
I don't see this with Gedit. Can you provide an example of an app that reproduces the issue?
Comment 2 Bernie Innocenti 2023-05-16 09:39:17 UTC
The app I used for this bug's description was eog, but I get similar output from gedit:

```
bernie@giskard:~% gedit

(gedit:26024): Gtk-WARNING **: 02:36:48.122: Theme parsing error: gtk.css:1649:16: '-gtk-icon-size' is not a valid property name

(gedit:26024): Gtk-WARNING **: 02:36:48.122: Theme parsing error: gtk.css:1652:16: '-gtk-icon-size' is not a valid property name
```
Comment 3 Bernie Innocenti 2023-05-16 09:43:51 UTC
.config/gtk-3.0/gtk.css contains only this one line:

```
@import 'colors.css';
```

The offending lines seem to be from /usr/share/themes/Breeze/gtk-3.0/gtk.css 1649 and 1652:

```
1648 .normal-icons {
1649   -gtk-icon-size: 16px; }
1650
1651 .large-icons {
1652   -gtk-icon-size: 32px; }
```
Comment 4 Bernie Innocenti 2023-05-16 09:46:38 UTC
The message seems to come from gtk3-3.24.37-1.fc38.x86_64
Comment 5 Nate Graham 2023-05-16 16:08:11 UTC
I'm a bit confused here. "gtk-icon-sizes" is described as deprecated at https://docs.gtk.org/gtk3/property.Settings.gtk-icon-sizes.html, but "-gtk-icon-size" is mentioned as a thing in https://docs.gtk.org/gtk4/enum.IconSize.html.
Comment 6 Fushan Wen 2023-05-16 18:10:04 UTC
Fixed in 5.27.5