@matheusbsbs / matheus-bagliano / commits / af894943cb
Fork 0

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>

Soeren Finster committed Jul 7, 2008 at 18:50 UTC af894943cb9dbad1d6892dc983dc6ac0fa6ca8e8
1 file changed +7 -3
git-gui.sh
+7 -3
@@ -1995,9 +1995,13 @@ if {[is_enabled multicommit]} {
1995 }
1996 }
1997
1998 -.mbar.repository add command -label [mc Quit] \
1999 - -command do_quit \
2000 - -accelerator $M1T-Q
1998 +if {[is_MacOSX]} {
1999 + proc ::tk::mac::Quit {args} { do_quit }
2000 +} else {
2001 + .mbar.repository add command -label [mc Quit] \
2002 + -command do_quit \
2003 + -accelerator $M1T-Q
2004 +}
2005
2006 # -- Edit Menu
2007 #