]> git.ipfire.org Git - thirdparty/git.git/commit - gitk-git/gitk
Make gitk save and restore window pane position on Linux and Cygwin.
authorMark Levedahl <mdl123@verizon.net>
Tue, 13 Feb 2007 00:19:34 +0000 (19:19 -0500)
committerPaul Mackerras <paulus@samba.org>
Wed, 14 Feb 2007 22:13:14 +0000 (09:13 +1100)
commit9ca72f4f60269fb6328bc9c4034d19b9479637ea
tree46e1546c774ba659b97653e52a1d93538077c178
parentb6047c5a8166a71e01c6b63ebbb67c6894d95114
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