]> git.ipfire.org Git - thirdparty/git.git/commitdiff
gitk: Preserve window dimensions on exit when not using ttk themes
authorEric Huber <echuber2@illinois.edu>
Tue, 15 Oct 2019 00:13:16 +0000 (00:13 +0000)
committerPaul Mackerras <paulus@ozlabs.org>
Sun, 15 Dec 2019 05:31:52 +0000 (16:31 +1100)
Bug was: gitk would overwrite the botwidth setting in .gitk with
a nonsense value when not using tk themes. Moving the affected
line within the conditional results in the expected behavior.

Signed-off-by: Eric Huber <echuber2@illinois.edu>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
gitk

diff --git a/gitk b/gitk
index 1a234fef1d653bc1c1cc3a419110a87098ba0f02..da84e22dd49b8f5c31f76b9a5174bca3370e40eb 100755 (executable)
--- a/gitk
+++ b/gitk
@@ -2530,9 +2530,9 @@ proc makewindow {} {
             bind %W <Map> {}
             %W sashpos 0 $::geometry(botwidth)
         }
+       bind .pwbottom <Configure> {resizecdetpanes %W %w}
     }
 
-    bind .pwbottom <Configure> {resizecdetpanes %W %w}
     pack .ctop -fill both -expand 1
     bindall <1> {selcanvline %W %x %y}
     #bindall <B1-Motion> {selcanvline %W %x %y}