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 #20 received at 56607 <at> debbugs.gnu.org (full text, mbox):

From: Richard Hansen <rhansen <at> rhansen.org>
To: Eli Zaretskii <eliz <at> gnu.org>, Lars Ingebrigtsen <larsi <at> gnus.org>,
 Po Lu <luangruo <at> yahoo.com>
Cc: 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 19:37:03 -0400
[Message part 1 (text/plain, inline)]
Eli Zaretskii wrote:
> But I see something suspicious in the code which handles this 
> feature:
> 
>    if (!NILP (Vauto_resize_tool_bars))
>      {
>        bool change_height_p = true;  <<<<<<<<<<<<<<<<<<<<<<
> 
> AFAIU, that initialization should have been to 'false', not 'true'.

Yes, I think you are correct.  The nearly identical code in redisplay_tab_bar has the same problem.

> Can you try this on your system and see if such a change gives good
> results?

Unfortunately, changing it to false had no effect.  gdb didn't find the redisplay_tool_bar symbol, so pgtk builds must define HAVE_EXT_TOOL_BAR.

Lars Ingebrigtsen wrote:
>> 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.
> 
> That sounds like a bug in itself -- I'm not seeing any marine life ring 
> icons at all with --with-pgtk, so I wonder where that is coming from. 
> Do you have a screenshot?

Attached is an animated gif showing the icon and bounce effect.

Po Lu wrote:
> `auto-resize-tool-bars' doesn't work with either of the GTK builds, 
> since tool bars there don't wrap at all, and their dimensions are not 
> under the control of Emacs.

Can the toolbar be nested inside a container widget whose size we can control?

Thanks,
Richard
[animation.gif (image/gif, attachment)]
[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.