Skip to content

Commit ed05e9f

Browse files
committed
git-gui: change dialog button positions for Windows to suit platform.
On windows it is more common to have cancel furthest on the right. Signed-off-by: Pat Thoyts <[email protected]>
1 parent 1fcd24d commit ed05e9f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/choose_repository.tcl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,9 @@ method _next {action} {
286286
destroy $w_body
287287
if {![winfo exists $w_next]} {
288288
${NS}::button $w_next -default active
289-
pack $w_next -side right -padx 5 -before $w_quit
289+
set pos -before
290+
if {[tk windowingsystem] eq "win32"} { set pos -after }
291+
pack $w_next -side right -padx 5 $pos $w_quit
290292
}
291293
_do_$action $this
292294
}

0 commit comments

Comments
 (0)