! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
[PATCH] Fix text-shadow value to silence a gtk3 warning
Status:
RESOLVED: FIXED
Product:
Gtk-xfce-engine
Component:
General

Comments

Description Nicolas Iooss 2014-06-09 13:06:20 CEST
Created attachment 5520 
Fix-text-shadow-value-to-silence-a-gtk3-warning.patch

Hello,

When running Gtk+ applications in XFCE, the following warning appears in the console:

    (gedit:9384): Gtk-WARNING **: Theme parsing error: gtk.css:102:18: Not using units is deprecated. Assuming 'px'.
    (gedit:9384): Gtk-WARNING **: Theme parsing error: gtk.css:102:20: Not using units is deprecated. Assuming 'px'.

A quick "strace -eopen -f gedit" shows that these warnings are triggered by this line in /usr/share/themes/Xfce/gtk-3.0/gtk.css:

    text-shadow: 1 1 white;

Replacing "1" by "1px" in such lines is enough to silence the warnings.  The attached patch does exactly this for every theme.

System information
------------------
- Distro: Arch Linux
- Package version:
  * gtk3-xfce-engine 3.0.1-1
  * gtk3 3.12.2-1
  * xfwm4 4.10.1-1

- CPU architecture: x86_64
- Kernel version: 3.14.5

--
Nicolas
Comment 1 Landry Breuil editbugs 2014-08-27 08:45:47 CEST
Hah, i was going to file a bug with the exact same patch.. simon, care to apply it ?
Comment 2 Peter de Ridder editbugs 2015-02-18 21:44:14 CET
Released with 3.1.0
Comment 3 Peter de Ridder editbugs 2015-02-18 21:46:11 CET
*** Bug 11241 has been marked as a duplicate of this bug. ***

Bug #10950

Reported by:
Nicolas Iooss
Reported on: 2014-06-09
Last modified on: 2015-02-18
Duplicates (1):
  • 11241 Theme parsing error on xfce4 on arch linux with dusk theme. Found the solution!!

People

Assignee:
Olivier Fourdan
CC List:
4 users

Version

Version:
Unspecified

Attachments

Additional information