Hi, On Thu, 30 Mar 2006, Mark Wooding wrote: > Junio C Hamano <junkio@xxxxxxx> wrote: > > > Does anybody know what is going on? > > I'll try staring at the Tcl source code some time. I'm rather too busy > tonight, though. > > There's also some very strange geometry management oddness going on in > gitk. I'll try to sort that out too. That has been discussed. My feeling is that this is a bug of Tk with regard to rootless X servers. I never came around to do a proper patch, but I have explicit -height and -width arguments to all frames and panedwindows. If you want to start working on it, I attached my current patch, which is good enough for me, but note that it changes the geometry subtly everytime gitk is called... Hth, Dscho
[PATCH] gitk: make geometry less weird on cygwin and macosx Signed-off-by: Johannes Schindelin <Johannes.Schindelin@xxxxxx> --- gitk | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gitk b/gitk index 03cd475..7339069 100755 --- a/gitk +++ b/gitk @@ -373,13 +373,13 @@ proc makewindow {rargs} { set geometry(ctexth) [expr {($texth - 8) / [font metrics $textfont -linespace]}] } - frame .ctop.top + frame .ctop.top -height $geometry(canvh) frame .ctop.top.bar pack .ctop.top.bar -side bottom -fill x set cscroll .ctop.top.csb scrollbar $cscroll -command {allcanvs yview} -highlightthickness 0 pack $cscroll -side right -fill y - panedwindow .ctop.top.clist -orient horizontal -sashpad 0 -handlesize 4 + panedwindow .ctop.top.clist -orient horizontal -sashpad 0 -handlesize 4 -height $geometry(canvh) pack .ctop.top.clist -side top -fill both -expand 1 .ctop add .ctop.top set canv .ctop.top.clist.canv @@ -449,9 +449,10 @@ proc makewindow {rargs} { # for making sure type==Exact whenever loc==Pickaxe trace add variable findloc write findlocchange - panedwindow .ctop.cdet -orient horizontal + panedwindow .ctop.cdet -orient horizontal \ + -height [expr $geometry(ctexth)*$linespc+4] .ctop add .ctop.cdet - frame .ctop.cdet.left + frame .ctop.cdet.left -width [expr $geometry(ctextw)*[font measure $textfont "0"]+8] set ctext .ctop.cdet.left.ctext text $ctext -bg white -state disabled -font $textfont \ -width $geometry(ctextw) -height $geometry(ctexth) \