On Mon, Jul 23, 2007 at 11:57:06AM +1000, James Healy wrote: > /usr/share/themes/Clearlooks/gtk-2.0/gtkrc:34: error: unexpected character > `@', expected string constant
This is because the old version of GTK that's running doesn't support "symbolic names", which were introduced in 2.10. I have had this error with vmware-server-console on AMD64 for many months, and the only consequence is that the vmware-server-console windows have the wrong colours. That is, vmware-server-console starts up and runs fine. Attached is my custom .gtkrc-2.0 for comparison. The gtkrc format is only documented in the GTK API, the relevant file being http://library.gnome.org/devel/gtk/unstable/GtkSettings.html (change unstable to 2.10 or whatever for a specific release version).
#### -*- conf -*- #### http://library.gnome.org/devel/gtk/unstable/GtkSettings.html #### Engine settings in /usr/share/gtk-engines/*.xml gtk-cursor-theme-name = "DMZ-Black" gtk-toolbar-style = GTK_TOOLBAR_BOTH_HORIZ gtk-scrolled-window-placement = GTK_CORNER_TOP_RIGHT gtk-enable-animations = 0 ## Broken: can't close windows (steals C-w) and only implements the ## most superficial Emacs behavious anyway -- not even C-SPC! # gtk-key-theme-name = "Emacs" ## Broken: forces the use of HC pngs for some icons. # gtk-theme-name = "HighContrastInverse" gtk-icon-theme-name = "HighContrast-SVG" ## Gtk-color-scheme exists so that you can customize a theme's color ## scheme without understanding the intricacies of the theme itself. ## If you set gtk-color-scheme in gnome-settings-daemon, this works. ## Just setting it and gtk-theme-name in this file DOES NOT work, ## because symbolic references are resolved at parse time -- that is, ## they only work within the file in which they occur, not in included ## files or gtk-theme-name files. ## ## What to do? You can 1) run gnome-settings-daemon; 2) copy the ## theme you want into ~/.themes/twb and change the ONE LINE that sets ## gtk-color-scheme, then set gtk-theme-name to "twb". I have done a ## variant of latter, copy-and-pasting a stripped-down theme in below. gtk-color-scheme = "fg_color: white bg_color: black text_color: white base_color: black selected_fg_color: white selected_bg_color: grey20 tooltip_fg_color: white tooltip_bg_color: black" ## Symbolic names were introduced in 2.10, so on older hosts you'll ## see default colors and get a parse error warning on stderr. ## Similarly, if libindustrial.so isn't available, you'll get the ## default engine, Raleigh. ## ## Note that I'm using the old Industrial and High Contrast engines. ## That's because none of the other engines seem able to cope with a ## completely black background -- you end up with a fantastically ## useless amount of black-on-black borders and checkboxes. style "twb" { engine "hcengine" { edge_thickness = 1 } engine "industrial" { contrast = 0.5 } base[INSENSITIVE] = @base_color bg[INSENSITIVE] = @bg_color fg[INSENSITIVE] = @fg_color text[INSENSITIVE] = @text_color base[NORMAL] = @base_color bg[NORMAL] = @bg_color fg[NORMAL] = @fg_color text[NORMAL] = @text_color base[ACTIVE] = @base_color bg[ACTIVE] = @bg_color fg[ACTIVE] = @fg_color text[ACTIVE] = @text_color base[SELECTED] = @selected_bg_color bg[SELECTED] = @selected_bg_color fg[SELECTED] = @selected_fg_color text[SELECTED] = @selected_fg_color base[PRELIGHT] = @selected_bg_color bg[PRELIGHT] = @selected_bg_color fg[PRELIGHT] = @selected_fg_color text[PRELIGHT] = @selected_fg_color ## These don't actually WORK in Epiphany :-/ GtkWidget::link-color = "#3465A4" GtkWidget::visited-link-color = "#75507B" GtkEntry::cursor_color = @text_color } widget_class "*" style "twb"
signature.asc
Description: Digital signature