pkgsrc-Users archive

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

Re: difficulty adjusting vertical and horizontal panel sizes in gtk3 programs



At Sun, 23 Mar 2025 15:48:15 +0100, Ramiro Aceves <ea1abz%gmail.com@localhost> wrote:
Subject: Re: difficulty adjusting vertical and horizontal panel sizes in gtk3 programs
>
>
> Hello Benny,thanks for the idea but no
> luck. I have also tested with ctwm with
> same results.

CTWM frame controls are sized by the "BorderWidth" setting, which
defaults to just 2 pixels when no system.ctwmrc or ~/.ctwmrc are found,
and if UseThreeDBorders is set (which has been the default for some
decades now), then it uses ThreeDBorderWidth, which defaults to 6 pixels
I think.  There's also "BorderShadowDepth" for 3D borders.

I don't think CTWM listens to the app for any hints about border width.

The standard NetBSD system.ctwmrc sets UseTheeDBorders (and
BorderResizeCursors), and sets both ThreeDBorderWidth and BorderWidth to
some value based on trying to use bitmap fonts with a very broken
understanding of how font sizes and screen resolutions are supposed to
play together, but I think it's generally too small a value by default.

I usually set ThreeDBorderWidth to 6, 8, or 10 depending on the screen
resolution, and set BorderShadowDepth to half that.

There's also the "f.resize" action in CTWM, which in the NetBSD
system.ctwmrc is bound to the right title button -- you just press it
and hold it while dragging the cursor past an edge of the window to
begin resizing the window.

I have patched to ctwm that internally set the font resolution properly,
based on scalable fonts of course, to the screen resolution and I should
extend them to auto-size the various widths and depths of things too.

--
					Greg A. Woods <gwoods%acm.org@localhost>

Kelowna, BC     +1 250 762-7675           RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost>     Avoncote Farms <woods%avoncote.ca@localhost>

Attachment: pgp9lM8OkYd8d.pgp
Description: OpenPGP Digital Signature



Home | Main Index | Thread Index | Old Index