From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56607: 29.0.50; (setq auto-resize-tool-bars 'grow-only) has no effect (pgtk) Date: Sun, 17 Jul 2022 13:02:40 +0300 Message-ID: <835yjwqcov.fsf@gnu.org> References: <8b743715-5027-1802-dfc4-d56abadedf08@rhansen.org> <83cze4qo1a.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10268"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56607@debbugs.gnu.org To: rhansen@rhansen.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 17 12:04:10 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 1oD18D-0002OH-TG for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Jul 2022 12:04:10 +0200 Original-Received: from localhost ([::1]:42942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oD18C-0003mT-47 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Jul 2022 06:04:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oD186-0003lm-96 for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2022 06:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48978) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oD186-00016N-0M for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2022 06:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oD185-0006Rj-NN for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2022 06:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Jul 2022 10:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56607 X-GNU-PR-Package: emacs Original-Received: via spool by 56607-submit@debbugs.gnu.org id=B56607.165805218824712 (code B ref 56607); Sun, 17 Jul 2022 10:04:01 +0000 Original-Received: (at 56607) by debbugs.gnu.org; 17 Jul 2022 10:03:08 +0000 Original-Received: from localhost ([127.0.0.1]:46737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oD17D-0006QW-UF for submit@debbugs.gnu.org; Sun, 17 Jul 2022 06:03:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oD179-0006Q1-Ty for 56607@debbugs.gnu.org; Sun, 17 Jul 2022 06:03:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oD174-00011q-8V; Sun, 17 Jul 2022 06:02:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xmbwjn+PJxEtYfQ2sJ1rN8W0P+kTXN4x/6oGH3SyUko=; b=RmLx3t7ZYG7K q9276OG4cNFY7xJDq5fwZSRfrdhblrXxT8iqRSoVwRou6/aP5LXh+uRywj4qix+QX4xUytk8FIiKm 1dioCBueKuUKwO7/MaIBhL8rGVrbPUi1Xc9z2JV9G7SW+6rm3Ilomuf1EfdS1lheqnM7P7Z0dLsQ6 2/kmOn+m0J1vBEmjtIKuATNPS6RBd4/UU9niNXWoasRFYiPHIHJJYslySg8HPcXhWCkzdB3CTG+1U U4SP3GSJ5UttZanH7r3kR/uX0PIqaKq4oDmolbsWBgpPPPeDs+8HQaKenfcnDoyWtUE9RmI+VPt+i w8J7ugBxw72B3bqEKnKu/A==; Original-Received: from [87.69.77.57] (port=1714 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oD173-0006QJ-ND; Sun, 17 Jul 2022 06:02:58 -0400 In-Reply-To: <83cze4qo1a.fsf@gnu.org> (message from Eli Zaretskii on Sun, 17 Jul 2022 08:57:37 +0300) 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:237251 Archived-At: > Cc: 56607@debbugs.gnu.org > Date: Sun, 17 Jul 2022 08:57:37 +0300 > From: Eli Zaretskii > > > Date: Sat, 16 Jul 2022 21:52:09 -0400 > > From: Richard Hansen > > > > emacs -Q > > M-: (setq auto-resize-tool-bars 'grow-only) RET > > C-s > > > > The tool bar now shows a ridiculously oversized marine life ring icon on the "Help" button, and the height of the tool bar has grown to accommodate the icon's size. > > > > C-g > > > > Expected behavior: The tool bar reverts back to how it was before C-s was pressed, except its height stays the same. > > > > Actual behavior: The tool bar reverts back to how it was before, including reverting to its original height. > > I cannot reproduce this because on my system the Help button doesn't > get the "ridiculously oversized marine life ring icon", so the tool > bar doesn't resize. FWIW, the basic functionality in the display engine does work. I can simulate the resizing of the tool bar with the following snippet: (setq old-map (copy-sequence tool-bar-map)) (tool-bar-add-item-from-menu 'dired "splash") If I then evaluate the below: (setq tool-bar-map (copy-sequence old-map)) the large icon disappears, and under auto-resize-tool-bars set to grow-only the tool bar stays the same dimensions. So if the tool bar is displayed by Emacs (as opposed to by a toolkit), the auto-resizing works as expected. I guess this is indeed a GTK thing, since it doesn't heed our variables?