Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

theme parsing error: '/*' in comment block, in file gtk-3.0/gtk.css, edition II-1 #2

Open
leisti opened this issue Dec 29, 2018 · 2 comments

Comments

@leisti
Copy link

leisti commented Dec 29, 2018

I'm using the PRO-dark-XFCE-edition-II-1 theme on Xubuntu. When I open Emacs as a graphical editor from the command line, these warning are printed in the terminal emulator:

(emacs25:15144): Gtk-WARNING **: 20:29:29.659: Theme parsing error: gtk.css:4419:85: '/*' in comment block
(emacs25:15144): Gtk-WARNING **: 20:29:29.659: Theme parsing error: gtk.css:4512:64: '/*' in comment block

I've traced them to lines 4419 and 4512 in file gtk-3.0/gtk.css of the PRO-dark-XFCE-edition-II-1 theme:

/*///////////////////////////////////////////////////////////////////////////////////*/
/*//////////////////////////////////////////////////////////////*/

It seems that whatever code is parsing the gtk.css file is confused by the last third-last and second-last characters (/*) on these lines.

While this is certainly not a big deal, it is a bit annoying to have unneeded warnings in the console. This could be fixed either by deleting the lines, or probably by adding a space near their end, thus: /*/// ... // */.

@WebGuyJeff
Copy link

WebGuyJeff commented Jan 30, 2021

Same issue still present

(light-locker:4880): Gtk-WARNING **: 13:33:38.367: Theme parsing error: gtk.css:4419:85: '/*' in comment block
(light-locker:4880): Gtk-WARNING **: 13:33:38.367: Theme parsing error: gtk.css:4512:64: '/*' in comment block
(nm-applet:4866): Gtk-WARNING **: 13:33:38.388: Theme parsing error: gtk.css:4419:85: '/*' in comment block
(nm-applet:4866): Gtk-WARNING **: 13:33:38.389: Theme parsing error: gtk.css:4512:64: '/*' in comment block

EDIT:
For a quick fix, open the following css files with a regex capable text editor such as sublime text, and use the following regex in find/replace to remove all commenting from both gtk css files:

# Regex to match all css comments
/\*.+?\*/

# Files to edit
/home/jeff/.themes/PRO-dark-XFCE-4.14/gtk-3.0/gtk.css
/home/jeff/.themes/PRO-dark-XFCE-4.14/gtk-3.0/gtk-dark.css

@aryoda
Copy link

aryoda commented Mar 3, 2023

@paullinuxthemer wasn't active on Github since May 2021, I am afraid this repo is unmaintained now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants