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 10:12:08 +0800 Message-ID: <87czjvzczr.fsf@yahoo.com> References: <871r0coue5.fsf@rub.de> 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="40126"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 53900@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 03:13:24 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 1nHyxX-000AFU-AT for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Feb 2022 03:13:23 +0100 Original-Received: from localhost ([::1]:52772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHyxV-0006b4-PG for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Feb 2022 21:13:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHyxC-0006as-4C for bug-gnu-emacs@gnu.org; Wed, 09 Feb 2022 21:13:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59278) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHyxB-0007wA-RK for bug-gnu-emacs@gnu.org; Wed, 09 Feb 2022 21:13:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHyxB-0004uB-N5 for bug-gnu-emacs@gnu.org; Wed, 09 Feb 2022 21:13: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 02:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53900 X-GNU-PR-Package: emacs Original-Received: via spool by 53900-submit@debbugs.gnu.org id=B53900.164445914918815 (code B ref 53900); Thu, 10 Feb 2022 02:13:01 +0000 Original-Received: (at 53900) by debbugs.gnu.org; 10 Feb 2022 02:12:29 +0000 Original-Received: from localhost ([127.0.0.1]:53175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHywf-0004tP-J3 for submit@debbugs.gnu.org; Wed, 09 Feb 2022 21:12:29 -0500 Original-Received: from sonic312-25.consmr.mail.ne1.yahoo.com ([66.163.191.206]:33438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHywe-0004tA-5w for 53900@debbugs.gnu.org; Wed, 09 Feb 2022 21:12:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1644459142; bh=m6EMc17uI7L9ESqZCpqIQmAup8x3/4kywe/lkBiypN0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=IWgB+wbzz8C9ww7RrUdAfz9VOkVmIrA22NkT+VpnnID4chDqndrztobwFI7yC7izXJMABw+lt3uU/N9DFzi0joW5IiBRDe1gt/GwgCGT54/gFIlxY/MblayHKVvxmmiIWBVzqpoTTwlq6TKssRBLsIw+/rOItfVrd7L58O4gVnLB5G09zwVZanH/Ra1pOkaeyAgO9dnnJCHf3lZsWTt5EE+VjRU8pCDjOY04lCPafeSbFVqP3Vgwqqgg6rJbN2DxZHxM1JsiRgLgrFI8xGEwMl6QDfAY7mwugggcw5xUXKLHYiIRq+RPBAdeY2LrkfvK7Lj7BchlLOUV/Jciu8meYA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1644459142; bh=tV1phn8pZuECqSPDULXFIvpRIUOzQnmbdEr9dLM/cDW=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Ti4KzGTPSbM7XFv4yuAbITMGmjEUv4/mpFs7qkU99A2o9nL8gGQQFQEdySl4gXw2gslI3ORGNKmtlUQMRsM/r7fxvubqafcJ8gMO4c2Bc7R56FXMY2EajFj81xOmgML+OVGv9vAt8/MIJnpDsDU58OJJ/y7OrKgE90LS3JC6tufwxlu4mANleRi+XJaNffNv0hS69utIL6oUUpsrWjpNvhXApobA2y15NXosI0HOQ9af73FNjGOhzywCeXiCh/rREJir/xiDWiRn/XlZYv/HFpz6/09IHNn6xcaEylf4YwMjC1hPEuo/qULaepGnL7YB8OEQ/sn5GPMYFVwZPGHklw== X-YMail-OSG: zb.X3Q0VM1k0uguiZG_urbgTfohTNGgENULBbWNPWAG5Q3jOMdZfdYTzYP6EHQy cDX6d1FlmOv498Gf46uWbMjd.60G1uxVrmXZsma2VFil.x58CCJvQm8BKsh8tGZA7uTDd_Sgiz.2 ISul9GCuUx0nVzynpk4ZQme_c.u6n81OZJzb_U3iImo..FNm0JePJV5RhvL2hlrDbMTJ7bgweTc2 zK.rMI7nkJNIQSbW.39nIZa1Rb8ilJCDPnbVKpZWopb8LOL4TlpDWRyzoe12a1g34IbukJQBKz1Y OEKKbjaHghpx0zpq22uWp5LWsKL86TcHWuuyA9buTuwvXdSY3nXcOwh9Dh9TDaClti1ZVH0x_3ih uN5dZlIR1oND4j8Rbp448EpQouCnqnvnDgOSAg4ALhYZVOCQPSn7kInvvNxDJ..vm7Uqj7V5krvM lEOnPoG1Fk2KQ1QgyNiGAMMOBpAP0GpGNxAOMK_3LuSRHlNSbCm0t1Bn.YitkpyejJXCQGZDguHp NfWWXmRabLqkEeleesQUkEYzGzK1ubQ3U7PzFLXNtOjTn2H51siatqgIx1euAqDYYISq7cFC4MKT w7CCz43B_gZZGToUt.LO24Pg_nwEdi7fhGD4eloMpd_P6ZBrn_oLhddCOcnXHzNMa8g_byYA.g2g ufMJmDOJo7oxUS0Q_5KhCNSIrLLZvLw_6o3RGnsaCfU0J5jUJ.48ANK4Fe_38ZKFY64eUuXMt7Gx GUqtrZNjBJfuNSXt0cH4I6Hjq0qtuIZH7yrbJTJ4IBvEoBkOk.47cHapWClYOk2hTX.9y.UO31ex pYVhw5xnPcl5qbVohbUA2oA96MN9jvd619.pZK8gJX X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Thu, 10 Feb 2022 02:12:22 +0000 Original-Received: by kubenode513.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 86ce17e697da8464b7a3b1b32045e3e2; Thu, 10 Feb 2022 02:12:16 +0000 (UTC) In-Reply-To: <871r0coue5.fsf@rub.de> (Stephen Berman's message of "Wed, 09 Feb 2022 17:51:46 +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:226521 Archived-At: 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.