From: Richard Hansen <rhansen@rhansen.org>
To: Eli Zaretskii <eliz@gnu.org>, Lars Ingebrigtsen <larsi@gnus.org>,
Po Lu <luangruo@yahoo.com>
Cc: 56607@debbugs.gnu.org
Subject: 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 [thread overview]
Message-ID: <b78bcf75-0333-257f-2b3b-04740c8a2aa5@rhansen.org> (raw)
In-Reply-To: <83cze4qo1a.fsf@gnu.org>
[-- Attachment #1.1.1: Type: text/plain, Size: 1382 bytes --]
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
[-- Attachment #1.1.2: animation.gif --]
[-- Type: image/gif, Size: 39651 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-07-17 23:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-17 1:52 bug#56607: 29.0.50; (setq auto-resize-tool-bars 'grow-only) has no effect (pgtk) Richard Hansen
2022-07-17 5:46 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-17 5:57 ` Eli Zaretskii
2022-07-17 10:02 ` Eli Zaretskii
2022-07-17 23:37 ` Richard Hansen [this message]
2022-07-18 0:55 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-18 3:37 ` Richard Hansen
2022-07-18 4:35 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-18 5:43 ` Richard Hansen
2022-07-18 6:24 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-17 9:20 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b78bcf75-0333-257f-2b3b-04740c8a2aa5@rhansen.org \
--to=rhansen@rhansen.org \
--cc=56607@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=larsi@gnus.org \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).