GNU bug report logs - #56607
29.0.50; (setq auto-resize-tool-bars 'grow-only) has no effect (pgtk)

Previous Next

Package: emacs;

Reported by: Richard Hansen <rhansen <at> rhansen.org>

Date: Sun, 17 Jul 2022 01:53:02 UTC

Severity: normal

Found in version 29.0.50

Full log


Message #26 received at 56607 <at> debbugs.gnu.org (full text, mbox):

From: Richard Hansen <rhansen <at> rhansen.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, Lars Ingebrigtsen <larsi <at> gnus.org>,
 56607 <at> debbugs.gnu.org
Subject: Re: bug#56607: 29.0.50; (setq auto-resize-tool-bars 'grow-only) has
 no effect (pgtk)
Date: Sun, 17 Jul 2022 23:37:20 -0400
[Message part 1 (text/plain, inline)]
Po Lu wrote:
> Richard Hansen <rhansen <at> rhansen.org> writes:
> 
>> Can the toolbar be nested inside a container widget whose size we can 
>> control?
> 
> Perhaps, but then we would only be controlling the size of that widget, 
> and not the toolbar itself.

Can the dimensions of the toolbar be inspected?  If so, we can force the container widget to never shrink if `auto-resize-tool-bars' is `grow-only'.

> 
> GTK toolbars don't wrap extra items, they truncate them.  So 
> `auto-resize-tool-bars' has no real chance of working anyway.

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?

(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.)
[OpenPGP_signature (application/pgp-signature, attachment)]

This bug report was last modified 3 years and 29 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.