Skip to content

Commit c1a6345

Browse files
echuber2paulusmack
authored andcommitted
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 <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent f177c49 commit c1a6345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2530,9 +2530,9 @@ proc makewindow {} {
25302530
bind %W <Map> {}
25312531
%W sashpos 0 $::geometry(botwidth)
25322532
}
2533+
bind .pwbottom <Configure> {resizecdetpanes %W %w}
25332534
}
25342535

2535-
bind .pwbottom <Configure> {resizecdetpanes %W %w}
25362536
pack .ctop -fill both -expand 1
25372537
bindall <1> {selcanvline %W %x %y}
25382538
#bindall <B1-Motion> {selcanvline %W %x %y}

0 commit comments

Comments
 (0)