FS#24462 - gtk-3.0 theme not being loaded. "error parsing stylesheet"

Attached to Project: Arch Linux
Opened by Ramana Kumar (xrchz) - Thursday, 26 May 2011, 21:48 GMT
Last edited by Ionut Biru (wonder) - Sunday, 03 July 2011, 15:04 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
My sole gtk app, evince, does not use the Adwaita theme and therefore looks ugly.

This forum thread is related https://bbs.archlinux.org/viewtopic.php?pid=927655

Additional info:
* package versions:
extra/evince 3.0.2-1 (gnome-extra) [installed]
extra/gnome-themes-standard 3.0.2-1 (gnome) [installed]

* config and/or log files etc:

I have tried both with this setup

% ls -l ${XDG_CONFIG_HOME}/gtk-3.0
lrwxrwxrwx 1 ramana users 33 May 26 22:28 /home/ramana/.config/gtk-3.0 -> /usr/share/themes/Adwaita/gtk-3.0

in which case I get this error

% evince
Gtk-Message: CSS: Error parsing stylesheet
/home/ramana/.config/gtk-3.0/gtk.css, line 100, char 31:
@import url("gtk-widgets.css");
^

and with this setup

% cat ${XDG_CONFIG_HOME}/gtk-3.0/settings.ini
[Settings]
gtk-theme-name = Adwaita

in which case I get this error

(evince:21811): Gtk-WARNING **: Could not load named theme "Adwaita": Error parsing stylesheet
This task depends upon

Closed by  Ionut Biru (wonder)
Sunday, 03 July 2011, 15:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  gnome-themes-standard 3.0.2-2
Comment by Ionut Biru (wonder) - Thursday, 26 May 2011, 22:03 GMT
what happens if you set gtk2 theme on Adwaita?
Comment by Ramana Kumar (xrchz) - Thursday, 26 May 2011, 22:08 GMT
Not sure how to do that exactly.
Copying the settings.ini to gtk-2.0 has no effect.
Using gtk-chtheme also has no effect on evince, but when I "preview" Adwaita in gtk-chtheme, it looks OK and prints no errors.
Comment by William Swanson (s_tec) - Wednesday, 29 June 2011, 02:34 GMT
This error comes up on systems that don't have librsvg installed, since the Adwaita theme uses SVG icons for its check boxes. Making the gnome-themes-standard package depend on librsvg would fix this.
Comment by Ramana Kumar (xrchz) - Wednesday, 29 June 2011, 07:05 GMT
fix confirmed - thanks!
Comment by Ionut Biru (wonder) - Wednesday, 29 June 2011, 07:19 GMT
interesting

Loading...