Bug 528662 - "invalid symbolic color" when starting GTK apps
Summary: "invalid symbolic color" when starting GTK apps
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kdebase-workspace
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F12Blocker-kde
TreeView+ depends on / blocked
 
Reported: 2009-10-13 08:56 UTC by Mary Ellen Foster
Modified: 2009-10-23 16:58 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-10-23 16:58:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
My ~/.kde/share/config/gtkrc-2.0 (written out by KDE 4.3.1 on F10) (1.57 KB, text/plain)
2009-10-22 05:16 UTC, Kevin Kofler
no flags Details

Description Mary Ellen Foster 2009-10-13 08:56:40 UTC
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.

Comment 1 Rex Dieter 2009-10-21 20:17:54 UTC
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?

Comment 2 Matthias Clasen 2009-10-21 22:11:49 UTC
The non-pretty theme is a side-effect of the rc file parsing erroring out - it falls back to the builtin (Raleigh) theme.

Comment 3 Rex Dieter 2009-10-21 23:08:45 UTC
OK, so suggestions on how to resolve this?  I'm at a loss.

Comment 4 Matthias Clasen 2009-10-21 23:47:51 UTC
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 ?

Comment 5 Kevin Kofler 2009-10-22 00:42:02 UTC
AFAIK, we run xsettings-kde by default in KDE, so it might be worth having a look there.

Comment 6 Rex Dieter 2009-10-22 01:05:33 UTC
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.

Comment 7 Rex Dieter 2009-10-22 04:28:31 UTC
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.

Comment 8 Matthias Clasen 2009-10-22 05:08:38 UTC
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.

Comment 9 Kevin Kofler 2009-10-22 05:12:23 UTC
It's not xsettings-kde which is apparently faulty, but the gtkrc files written out by kdebase-workspace.

Comment 10 Kevin Kofler 2009-10-22 05:16:03 UTC
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?

Comment 11 Matthias Clasen 2009-10-22 12:28:56 UTC
Those floats are fine, according to http://library.gnome.org/devel/gtk/stable/gtk-Resource-Files.html#color-format

Comment 12 Than Ngo 2009-10-22 14:24:12 UTC
i try with the steps in comment #7, cannot reproduce this issue with a fresh user.

Comment 13 Matthias Clasen 2009-10-22 14:28:14 UTC
I can, with the gtkrc file that Kevin posted.

Comment 14 Matthias Clasen 2009-10-23 02:29:01 UTC
Fixed in gtk2-2.18.3-9.fc12

Comment 15 Adam Williamson 2009-10-23 16:58:57 UTC
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


Note You need to log in before you can comment on or make changes to this bug.