From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: 53900@debbugs.gnu.org
Subject: bug#53900: 29.0.50; pgtk: Gtk-CRITICAL warning with customized default face
Date: Thu, 10 Feb 2022 10:12:08 +0800 [thread overview]
Message-ID: <87czjvzczr.fsf@yahoo.com> (raw)
In-Reply-To: <871r0coue5.fsf@rub.de> (Stephen Berman's message of "Wed, 09 Feb 2022 17:51:46 +0100")
Stephen Berman <stephen.berman@gmx.net> writes:
> 0. emacs -Q
> 1. Sanity check: evaluating the following sexp displays a non-GTK
> tooltip and the shell emits no warning:
> (let (use-system-tooltips)
> (tooltip-show "Test"))
> 2. Evaluate this sexp:
> (custom-set-faces '(default ((t (:background "lightblue")))))
> 3. Evaluate the sexp in step 1 again:
> => A non-GTK tooltip is displayed and the shell emit a warning:
>
> emacs-pgtk:12321): Gtk-CRITICAL **: 17:05:36.422: gtk_css_provider_load_from_data: assertion 'GTK_IS_CSS_PROVIDER (css_provider)' failed
>
> In my tests this happens only when customizing the `default' face
> (though admittedly I haven't tested all faces nor all face attributes).
> It also happens when step 2 is replaced by loading any built-in theme
> (all of which customize the `default' face). (As a test I created a
> theme that does not customize the `default' face and with that theme did
> not get the warning.)
>
> My first pgtk-build that shows this warning is from commit
> dc5930ba973c9d921e9124b7afa1a65bba568b45. My previous pgtk-build at
> commit 988d3d79bac0343dd2b1b89d1b15470edbb5e6ac does not show the
> warning with the above recipe. Unfortunately, I don't have time now to
> do a git bisect to pinpoint the commit that causes the warning to be
> emitted.
>
> There is no warning if use-system-tooltips is non-nil. And there is no
> warning with the above recipe in a non-PGTK GTK3 build.
Should be fixed now on master. Thanks.
next prev parent reply other threads:[~2022-02-10 2:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-09 16:51 bug#53900: 29.0.50; pgtk: Gtk-CRITICAL warning with customized default face Stephen Berman
2022-02-10 2:12 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-02-10 8:53 ` Stephen Berman
2022-02-10 10:02 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87czjvzczr.fsf@yahoo.com \
--to=bug-gnu-emacs@gnu.org \
--cc=53900@debbugs.gnu.org \
--cc=luangruo@yahoo.com \
--cc=stephen.berman@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).