git-gui: Exit shortcut in MacOSX repaired
authorSoeren Finster <sf@9by6.de>
Mon, 7 Jul 2008 16:50:13 +0000 (18:50 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 8 Jul 2008 04:51:04 +0000 (00:51 -0400)
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>
git-gui.sh

index d89f156fd54fe5e51e00793b908ce220e6aa91c8..940677cbd8558574fd9f9fb5812a0bbf46198588 100755 (executable)
@@ -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
 #