summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Thoyts <patthoyts@users.sourceforge.net>2013-05-17 09:51:01 (GMT)
committerPat Thoyts <patthoyts@users.sourceforge.net>2013-05-17 09:51:01 (GMT)
commited05e9f6c027a23ce45bcdbac4196058ed5d0e07 (patch)
treec23f59609ebe8126067264c6b83830638b0f1c09
parent1fcd24d04358ea10c296a414e2b93f3714adca4b (diff)
downloadgit-ed05e9f6c027a23ce45bcdbac4196058ed5d0e07.zip
git-ed05e9f6c027a23ce45bcdbac4196058ed5d0e07.tar.gz
git-ed05e9f6c027a23ce45bcdbac4196058ed5d0e07.tar.bz2
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 <patthoyts@users.sourceforge.net>
-rw-r--r--lib/choose_repository.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/choose_repository.tcl b/lib/choose_repository.tcl
index 657f7d5..ee58981 100644
--- a/lib/choose_repository.tcl
+++ b/lib/choose_repository.tcl
@@ -286,7 +286,9 @@ method _next {action} {
destroy $w_body
if {![winfo exists $w_next]} {
${NS}::button $w_next -default active
- pack $w_next -side right -padx 5 -before $w_quit
+ set pos -before
+ if {[tk windowingsystem] eq "win32"} { set pos -after }
+ pack $w_next -side right -padx 5 $pos $w_quit
}
_do_$action $this
}