Description of problem: Every time I start a GTK app, I get the following two lines printed out: /usr/share/themes/Clearlooks/gtk-2.0/gtkrc:51: Invalid symbolic color 'bg_color' /usr/share/themes/Clearlooks/gtk-2.0/gtkrc:51: error: invalid identifier 'bg_color', expected valid identifier I've specifically noticed this with firefox and gvim, but I assume it'll happen with any other GTK apps too. Version-Release number of selected component (if applicable): gtk2-engines-2.18.4-1.fc12.x86_64 How reproducible: Every time Steps to Reproduce: 1. Start gvim or firefox Additional info: I'm using KDE as a desktop environment, but that may not be relevant.
I can confirm this for many of the themes here that contain similar @bg_color constructs in gtkrc. It may or may not be relevant, but gtk apps seem to be not themed properly when this error appears (using some fairly non-pretty theme). Any ideas what's going on?
The non-pretty theme is a side-effect of the rc file parsing erroring out - it falls back to the builtin (Raleigh) theme.
OK, so suggestions on how to resolve this? I'm at a loss.
I need to learn a way to reproduce this. Is an xsettings-manager running when this is happening ? Is it maybe exporting a value forGtk/ColorScheme that does not contain a value for bg_color ?
AFAIK, we run xsettings-kde by default in KDE, so it might be worth having a look there.
I thought about that. I previously reproduced it with and without xsettings-kde running. Even tried running gnome-settings-daemon as well. I'll try again with a fresh user.
OK, narrowed it down to kde's systemsettings->appearance->colors option "Apply colors to non-KDE4 applications" when that is enabled, this issue occurs. Looks like our(kde's) problem to solve.
Still somewhat my problem, too. We ought to be more tolerant against these kinds of things here. If you could tell me what value your xsettings manager is exporting for Gtk/ColorScheme, that would be great.
It's not xsettings-kde which is apparently faulty, but the gtkrc files written out by kdebase-workspace.
Created attachment 365649 [details] My ~/.kde/share/config/gtkrc-2.0 (written out by KDE 4.3.1 on F10) So, this is what KDE 4.3.x writes out (the format should be the same in all 4.3.x versions, only the actual values of the colors depend on the user's color scheme). I guess the floating-point colors are what the F12 GTK+ is not liking?
Those floats are fine, according to http://library.gnome.org/devel/gtk/stable/gtk-Resource-Files.html#color-format
i try with the steps in comment #7, cannot reproduce this issue with a fresh user.
I can, with the gtkrc file that Kevin posted.
Fixed in gtk2-2.18.3-9.fc12
Matthias is confident of the fix and Rex tested the tag request, so closing this as we're fairly sure it's good. Mary, please re-open if you still have problems after updating to that version of gtk2 or later. -- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers