bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#56607: 29.0.50; (setq auto-resize-tool-bars 'grow-only) has no effec


From: Richard Hansen
Subject: 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
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

Po Lu wrote:
Richard Hansen <rhansen@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.)

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]