paullinuxthemer / PRO-Dark-XFCE-Edition

A GTK-theme for the gnome desktop
38 stars 9 forks source link

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

Open leisti opened 5 years ago

leisti commented 5 years ago

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 commented 3 years ago

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 commented 1 year ago

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