From: Soeren Finster Date: Mon, 7 Jul 2008 16:50:13 +0000 (+0200) Subject: git-gui: Exit shortcut in MacOSX repaired X-Git-Tag: v1.6.0-rc0~61^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=af894943cb9dbad1d6892dc983dc6ac0fa6ca8e8;p=git.git 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 Signed-off-by: Shawn O. Pearce --- 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 #