Make gitk save and restore window pane position on Linux and Cygwin.
commit2055f3b5780daae6ec841cd47cae53358cb8827d
authorMark Levedahl <mdl123@verizon.net>
Tue, 13 Feb 2007 00:19:34 +0000 (12 19:19 -0500)
committerJunio C Hamano <junkio@cox.net>
Tue, 13 Feb 2007 00:40:25 +0000 (12 16:40 -0800)
tree2f4a3ddb2e2cd702cda7f04b8e05b0e9e017c77b
parent92360538739ac7ccff94ff2be4e3907a5136443e
Make gitk save and restore window pane position on Linux and Cygwin.

Subtle bugs remained on both Cygwin and Linux that caused the various
window panes to be restored in positions different than where the user
last placed them. Sergey Vlasov posed a pair of suggested fixes to this,
what is done here is slightly different. The basic fix here involves
a) explicitly remembering and restoring the sash positions for the upper
window, and b) using paneconfigure to redundantly set height and width of
other elements. This redundancy is needed as Cygwin Tcl has a nasty habit
of setting pane sizes to zero if their slaves are not configured with a
specific size, but Linux Tcl does not honor the specific size given.

Signed-off-by: Mark Levedahl <mdl123@verizon.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitk