gtk3

Gtk themes fixing error "Not using units is deprecated. Assuming 'px'."


I've been doing researches to try to find how to fix the error:

(launcher:7412): Gtk-WARNING **: Theme parsing error: gnome-applications.css:23:20: Not using units is deprecated. Assuming 'px'.

on Gtk 3+ themes.

It seems to be that this error came when updating to Gtk 3.4. The best answer that i found was "must add px at the end of the line" they were talking about the css files that has this kind of content..

}

.check:insensitive,
.check row:selected:insensitive,
.check row:selected:focused:insensitive {
    background-image: url("assets/checkbox-unchecked-insensitive-dark.svg");
}

Solution

  • Rewritten due to new information:

    In line 23, the border-radius rule needs a measurement unit. Change it to border-radius: 5px;. Similar with all the text-border, border-width etc. rules: they all need a unit. (In this case px, because that was the implicit default before.)

    Note that after editing, you may have to log out of your Desktop Environment and log in again in order for the CSS to be reloaded.