gitk: Preserve window dimensions on exit when not using ttk themes
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>
Eric Huber committed
Oct 15, 2019 at 00:13 UTC
c1a63459ed7364bb03e0549c1f042bca469d278f
1 file changed
+1
-1
gitk
+1
-1
@@ -2530,9 +2530,9 @@ proc makewindow {} {
2530
bind %W <Map> {}
2531
%W sashpos 0 $::geometry(botwidth)
2532
}
2533
+ bind .pwbottom <Configure> {resizecdetpanes %W %w}
2534
}
2535
2535
- bind .pwbottom <Configure> {resizecdetpanes %W %w}
2536
pack .ctop -fill both -expand 1
2537
bindall <1> {selcanvline %W %x %y}
2538
#bindall <B1-Motion> {selcanvline %W %x %y}