[PATCH] gitk: make geometry less weird on cygwin and macosx Signed-off-by: Johannes Schindelin --- 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) \