You are not logged in.

#1 2023-07-19 05:42:21

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

noisy GTK warnings

Pretty much any gtk app, when run from a terminal, will fill it up with repeated gtk warnings like:

(yad:5666): Gtk-WARNING **: 14:15:04.366: Theme parsing error: gtk.css:6136:114: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(yad:5666): Gtk-WARNING **: 14:15:04.366: Theme parsing error: gtk.css:6136:152: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(yad:5666): Gtk-WARNING **: 14:15:04.367: Theme parsing error: gtk.css:6142:46: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(yad:5666): Gtk-WARNING **: 14:15:04.367: Theme parsing error: gtk.css:6142:91: The :insensitive pseudo-class is deprecated. Use :disabled instead.

Only with the BL Boron theme, at least not in Adwaita, Dragon or Lithium.
@hhh I wonder if you could see if there's an edit we can put in our theme?
Is Boron derived from Yaru? If so, maybe related:
https://github.com/ubuntu/yaru/issues/709
https://github.com/ubuntu/yaru/pull/710/files


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#2 2023-07-19 19:40:52

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,036
Website

Re: noisy GTK warnings

The themes are generated via Oomox, and an old version of Oomox at that (I'm not sure which version, I'm posting using the Boron alpha in QEMU atm).

The fix is to extract the gtk3 resource file to a new .css file and change the deprecated values, then use the new .css instead of the one with the @import line in it. Thanks to your query, I've researched the process and managed to extract one earlier today, something I've never been able to do since GTK3 came out (yay!) I haven't edited editing anything yet to see if it all works, but that's next up.

Now for the weirdness... I can't reproduce this, not in this session, not in a LIVE session, and not in either of my 2 OS installs (Ubuntu and Debian)! WTF??? big_smile

The thing is, I know the themes should be spitting warnings. As a matter of fact, for a long time now one of the first things I do with a new install is lock my .xsession-errors file via chattr (the command is at the bottom of that link), since many themes produce warnings due to all the changes GNOME has made with GTK over time. IIRC, even some of the major theme projects like Shimmer (Greybird, Blackbird, Elementary themes) produced errors for a time, maybe they still do.

Anyway, I don't get why I'm not seeing warnings in a terminal. However, I am seeing them now in the .xsession-errors file, so I can troubleshoot it that way.


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Online

#3 2023-07-20 06:15:48

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,557
Website

Re: noisy GTK warnings

hhh wrote:

I don't get why I'm not seeing warnings in a terminal.

That is weird. You're on a standard Boron system? Maybe it's only some apps that spit out those warnings. Geany certainly does for me, ristretto and mousepad, but not lxterminal, nor thunar...

But, oh right, everybody and his brother spams out .xsession-errors. neutral


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB