diff options
author | Soeren Finster <sf@9by6.de> | 2008-07-07 18:50:13 +0200 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2008-07-08 00:51:04 -0400 |
commit | af894943cb9dbad1d6892dc983dc6ac0fa6ca8e8 (patch) | |
tree | 153da5780f8f8ead9dced667de51a09112ce27b8 | |
parent | 5821988f97b827f6ba81dfeebff932067c88ba6c (diff) | |
download | git-af894943cb9dbad1d6892dc983dc6ac0fa6ca8e8.tar.gz git-af894943cb9dbad1d6892dc983dc6ac0fa6ca8e8.tar.xz |
git-gui: Exit shortcut in MacOSX repaired
Now, as in all OSX apps, there is only one quit menu entry.
It's automatically in the wish menu and calls ::tk::mac::Quit when used.
Signed-off-by: Soeren Finster <sf@9by6.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rwxr-xr-x | git-gui.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/git-gui.sh b/git-gui.sh index d89f156fd..940677cbd 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -1995,9 +1995,13 @@ if {[is_enabled multicommit]} { } } -.mbar.repository add command -label [mc Quit] \ - -command do_quit \ - -accelerator $M1T-Q +if {[is_MacOSX]} { + proc ::tk::mac::Quit {args} { do_quit } +} else { + .mbar.repository add command -label [mc Quit] \ + -command do_quit \ + -accelerator $M1T-Q +} # -- Edit Menu # |