GNOME Bugzilla – Bug 326766
Clearlooks unexpected identifier error with precompiled apps on Gentoo
Last modified: 2006-08-01 19:01:51 UTC
Please describe the problem: I'm running Gnome 2.13.4 under Gentoo 2005.1/AMD64/xorg-x11-7.0. Apps compiled on my system work fine with Clearlooks, but precompiled binaries (32-bit Firefox 1.5, OpenOffice.org 2.0, VMWare Workstation 5.5) start with the following error: /usr/share/themes/Clearlooks/gtk-2.0/gtkrc:52: error: unexpected identifier `scrollbar_color', expected character `}' These apps have a GTK1 look to them, with Motif style widgets. Steps to reproduce: 1. Start any precompiled binary application. 2. 3. Actual results: Applications started from a terminal display above error, then (whether or not started from a terminal) display incorrectly with GTK1 widgets. Expected results: Application should have Clearlooks theme. Does this happen every time? Yes Other information:
To fix this, I'll have to make the old Clearlooks behave better to unknown gtkrc keywords. Right now, the theme will fail to initialize, but it would probably be better to just output a warning and ignore the keyword. This will mean that you'll have to recompile any static binaries. Since you'll have to do that anyway, you could probably choose to compile it with the newest Clearlooks. Still, I'm going to see what I can do to make sure this doesn't happen in the future.
These are not static binaries that I've compiled, they're normal binary packages -- as opposed to the Gentoo compiled-from-source packages that make up 99% of my system and don't have this problem. The fix you described should take care of these binary packages.
Is this fix scheduled to make the 2.14 release later this month? Apparently other Gentoo users are seeing this with gtk+ 2.8.12, even without the Gnome 2.13.x packages installed.
I'm now running 2.15.2. This is still an issue here, are there plans to fix this in the 2.15/2.16 release cycle? Is there any further information I can give to help resolve this?
What version of gtk-engines are you using?
(In reply to comment #5) > What version of gtk-engines are you using? > I'm using 2.7.4.
(In reply to comment #1) > To fix this, I'll have to make the old Clearlooks behave better to unknown > gtkrc keywords. Right now, the theme will fail to initialize, but it would > probably be better to just output a warning and ignore the keyword. Just to be clear about this, I'm now up to gtk-engines 2.7.6. There is no older version of Clearlooks installed. Programs distributed as binaries, including RealPlayer 10 and VMWare Workstation, as well as OpenOffice.org (which I get as a 32-bit binary because it doesn't build as 64-bit yet) give the "unexpected identifier" error on scrollbar_color (and animation if I comment out scrollbar_color). Since the engine seems to die at that point, they end up looking like gtk1 apps. If I comment out those two items in /usr/share/themes/Clearlooks/gtk-2.0/gtkrc these apps look normal. This doesn't happen with the 99.9% of apps which are built from source. It also doesn't happen with other themes like Glider. So is there something that can be done with the Clearlooks engine so that it doesn't die in these circumstances?
Without looking too terribly close, it sounds to me like you DO have an old version of clearlooks installed, under the 32bit stack.
Thanks, that clears it up. I need to pursue this on Gentoo bugzilla to get newer gtk+/engines included in the 32-bit emulation layer.