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#56607: 29.0.50; (setq auto-resize-tool-bars 'grow-only) has no effect (pgtk) Date: Mon, 18 Jul 2022 12:35:42 +0800 Message-ID: <87v8rvca1t.fsf@yahoo.com> References: <8b743715-5027-1802-dfc4-d56abadedf08@rhansen.org> <83cze4qo1a.fsf@gnu.org> <87a697dyu3.fsf@yahoo.com> 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="27278"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Eli Zaretskii , Lars Ingebrigtsen , 56607@debbugs.gnu.org To: Richard Hansen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 18 06:37:25 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 1oDIVX-0006nz-T3 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 Jul 2022 06:37:23 +0200 Original-Received: from localhost ([::1]:38244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDIVW-0000cf-FG for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 18 Jul 2022 00:37:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDIVC-0000ay-Hr for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2022 00:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51220) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDIVC-0000RS-8T for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2022 00:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oDIVB-0005rx-VM for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2022 00:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jul 2022 04:37: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.165811896722496 (code B ref 56607); Mon, 18 Jul 2022 04:37:01 +0000 Original-Received: (at 56607) by debbugs.gnu.org; 18 Jul 2022 04:36:07 +0000 Original-Received: from localhost ([127.0.0.1]:48979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDIUI-0005qm-O9 for submit@debbugs.gnu.org; Mon, 18 Jul 2022 00:36:06 -0400 Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]:39943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDIUC-0005qE-MZ for 56607@debbugs.gnu.org; Mon, 18 Jul 2022 00:36:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1658118953; bh=opwf+pZqGiwT1PoR9NYz39umfJWRTe/ckGkrRPeHi3E=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=peYvCsshI4DZnkYxghhcsqPi7D7+IeTFu5Cr/20fL41rMpjUuXeWieeSHl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UCtXjPo GaWghgeFeok5Ep_W0cVppjnNE6l_VO6d7cHxz9V1PLilOX7m6mvwApIYAEu_Cpz7Igxjp8SzuY5Q zzgfkyQhf9gS7mk6aED4nn8TuvVmvBtqslsvQ0eiImnFGHGZsNhhqBWBBf8C4qCMjf7MmVbx_J5X m4YLVs.XkscGZvXwj_uOK3UrDn1wMQNfdTfmT9oX4doRo4Yo.T10UtkM9oDmAxrDPi._4v4Uvhn_ fsBd1ivlP7UfK11cY3S.7KeuOYZIqTTvd2C729H9dX65AyBUQ0Y03HIREhGpFP51wn_wY5ArCnN5 rFvzylTPlfAouYFFTJNtpUT_9.ePHReBcboPCyrrESJDtMSFwlBjByCyx8uI2UuanfmIBgaqELj_ oyfjaFk6LsP9YsetvFK2GnjMUn1YcdmkCT7qI3dPMfWmRPQJTHJ6.Pk27ExkD8SuP28.v.If.phZ lCQx1z9VmFWDceqP7TNIusZUhhO9wR7KlKnPKwTwLt20wGU8gURZtlRtvk3fQLKohkSvYN5kXQpX QivZZqetZbiSrCvdWkcL2ZHfL_5Nm1mBu8vHE88Y41 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Mon, 18 Jul 2022 04:35:53 +0000 Original-Received: by hermes--canary-production-sg3-67975bbd4b-zlmw9 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 2f78da883dbdec6f2e0ed00300a527e0; Mon, 18 Jul 2022 04:35:48 +0000 (UTC) In-Reply-To: (Richard Hansen's message of "Sun, 17 Jul 2022 23:37:20 -0400") X-Mailer: WebService/1.1.20407 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:237322 Archived-At: Richard Hansen writes: > Can the dimensions of the toolbar be inspected? Yes, the height and width are constant when the tool bar is on the top or bottom. When the tool bar is on the left or right of the frame, then resizing can happen, but in that case I'm not sure how it works. > If so, we can force the container widget to never shrink if > `auto-resize-tool-bars' is `grow-only'. GTK never resizes the tool bar itself, so I'm not sure how that would make a difference. > If the toolbar width changes, we could do the (un)wrapping ourselves: > move the buttons to/from another toolbar underneath the upper toolbar. > The lower toolbar would still be inside the same container widget as > the upper toolbar, and `grow-only' would pay attention to the sum of > the heights of the toolbars. Would that work? Maybe, but it's a lot of trouble to create such a feature that the GTK developers are bound to break at some point. > (Sorry for all of the questions; I'm not familiar with GTK. But I'm > willing to spend some time to cook up some patches if given some hints > on how to tackle the problem.) I'd rather just disable auto-resize-tool-bars under GTK. That's not a feature GTK tool bars are designed to support.