From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#53900: 29.0.50; pgtk: Gtk-CRITICAL warning with customized default face Date: Thu, 10 Feb 2022 18:02:04 +0800 Message-ID: <87v8xnxco3.fsf@yahoo.com> References: <871r0coue5.fsf@rub.de> <87czjvzczr.fsf@yahoo.com> <871r0bcdbx.fsf@gmx.net> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7911"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 53900-done@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 10 11:03:32 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nI6IW-0001pS-OY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 11:03:32 +0100 Original-Received: from localhost ([::1]:36226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nI6IV-0004ix-Os for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 05:03:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nI6I2-0004Qe-1x for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 05:03:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60137) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nI6I1-00027Y-P0 for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 05:03:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nI6I1-0003UN-N5 for bug-gnu-emacs@gnu.org; Thu, 10 Feb 2022 05:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Feb 2022 10:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53900 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 53900-done@debbugs.gnu.org id=D53900.164448734513345 (code D ref 53900); Thu, 10 Feb 2022 10:03:01 +0000 Original-Received: (at 53900-done) by debbugs.gnu.org; 10 Feb 2022 10:02:25 +0000 Original-Received: from localhost ([127.0.0.1]:54028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI6HR-0003TB-Ai for submit@debbugs.gnu.org; Thu, 10 Feb 2022 05:02:25 -0500 Original-Received: from sonic314-20.consmr.mail.ne1.yahoo.com ([66.163.189.146]:38978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nI6HO-0003Ss-6P for 53900-done@debbugs.gnu.org; Thu, 10 Feb 2022 05:02:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1644487335; bh=8xLcjOc+yG02p8VizAI6KREzL6iwzKk6GKTDM1YWqq0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=HJSgMIVrNw69LK/SMLWOmmohLuwUtf79gczphlh92QYCDENN9Ef8E+wFKcYYP+OZoAaGJ0R77Yy5s2VJkg8ANA7fs3pNkI+x3awDLJK4MBvEbS5eybBrZlD4X3bxxCHFSpgbjPfhGDDvKvTuRF+iQaky3LRuXa1Prj7qz0iBaRp88CXV+kaV7TEZKbBUpTqe/xZuR2Gk5S0CS7dZa6/SpYlvOj0+WI4UGsCjcj6k1grlM7PVwgOu3uJXMTgeZwuNyNr/E+3I+vfsrd0zMBkkzMQZtFjr9+4mqND3pGcetnKnvvrm/mi8zUFda2xQggWSyAWI36pfHstVgw7rLtwhCQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1644487335; bh=GsuDl4YHICs55dTZX3JUra1Rzw46OmRJ33wtfJv/Jg/=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=j5QF4Dtu+vORL3hy0kbfxjQnlLrPIa5egGIvp8nAiaQkNDcnKefInmrpKBpiFUJU9IBdnpRk3i6KVuz6+AvsFkxnwOz/jHPeHe+DNDBBd4b+INjdx8iI0H83a0w/O0EKxdgxLUAkGf6dUpiOW2357qxJtyxl0oJpv1YTVi0zqGxC64YEdeIwaFkuRu3dakxHYHk/+IJwnwS75geK4ZeAzeVCyhd/cCtd3kXVFtNUD4WDUFoXkDcc0lsqgOh0V6VF7S+pndBOoLPmhGOfrVzLnsFtAH4uUf+tBvqXXdfFhNMqU5hfjgzpjUiUlLSOXmkrkuE4DUO9yK+PhQO5Ut8tTA== X-YMail-OSG: AZ5BPwkVM1mo3xrwEn0skOEZsqbFE7WJYaIQxCscfJOk.E_mo8AhXIVPR.joQbk HsacW7d_GH7K.fWli39631VIVbf.sje60p.64or3Aqi0aPo.s61CXHZJOgq945giF3YFfDnErrxT JjImC4f.YfqeavIguj5gTlQXStdyvEF1WuqALonDC1BWAR8oNRlSPkwbhoYUYYRGCWVuaxgfQpHf tNoCAEc209HdS9fxcRSZsNOHNYUhgoUQx4HBYv6ygrseJRlAS_uk.1bZ698XbfGrQL5xpPKbbXYS H1CorgSEEmuYHqhjQILHx.RlICKsexYUxEdgydH.6zZ.WNPBY08uQinPBfQL_9HA7QW48d4o8YL7 2wCvraNXsn0mlJQ50DWLJXfGA_.Xjvy764wWUm.u7.YJQ6mdELV18246dGgSKDHvMRcKwXGI6N_d A_8LwhaWS.Rp0o0ewrI2X55_qyEQVZ3jAKp0y.IJphy49ZF5RH2O8g7idMYAbyLY6T18XKp6FCQS 7Uo2VUz5vxYTZKvUvwMDcLiKIwlcr7UQQizyCo9pw0GEYqc_tO9iaxuXFCS_OrtxanctiHd.7JwJ 4Oj7t_Z5j5U_GVa.JtngfVHkAjZm9JDimLhM8OK4dY2ZSzaoUuHZLY5xxtKGzRXleVSEvYDOwpKf ogtW7bltpGB0mF3k6O1ESYPPdCYXz6jYydReAb_Jjwvs0JAytpUsrCBINoxfMDFCH4TZilyWPPFb eljWa5nrot4cXFaVHX8t.JIv9YcLeLREJGfAonHwd7N84FfeOQngOLUMfEf26PRVUm0nc1FhjnbN rECTXZ2Traom5m3vZXVNbYX9FLyFEIghy1kNeJgxTD X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Thu, 10 Feb 2022 10:02:15 +0000 Original-Received: by kubenode501.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 6101c665e94ee79974b754f6f9c73e30; Thu, 10 Feb 2022 10:02:09 +0000 (UTC) In-Reply-To: <871r0bcdbx.fsf@gmx.net> (Stephen Berman's message of "Thu, 10 Feb 2022 09:53:22 +0100") X-Mailer: WebService/1.1.19724 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226581 Archived-At: Stephen Berman writes: > On Thu, 10 Feb 2022 10:12:08 +0800 Po Lu wrote: > >> Stephen Berman 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. > > Confirmed, so I'm closing the bug. Thanks. Thanks for testing.