Skip to content

Commit

Permalink
git-gui: Exit shortcut in MacOSX repaired
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Soeren Finster authored and Shawn O. Pearce committed Jul 8, 2008
1 parent 5821988 commit af89494
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit af89494

Please sign in to comment.