aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-05-28 11:34:47 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-05-28 17:50:41 -0400
commitf60fdd0eaaaf92882f3e6aeb19bb85482fab6d39 (patch)
tree90c2f8015400d3e8241b088c14fb6c0de6dde168
parentf8371706635b7ea19e8df2739e09b8bd3fbf7768 (diff)
downloadgit-f60fdd0eaaaf92882f3e6aeb19bb85482fab6d39.tar.gz
git-f60fdd0eaaaf92882f3e6aeb19bb85482fab6d39.tar.xz
git-gui: Disable tearoff menus on Windows, Mac OS X
The Windows and Mac OS X platforms do not generally use the tearoff menu feature found on traditional X11 based systems. On Windows the Tk engine does support the feature, but it really is out of place and just confuses people who aren't used to working on a UNIX system. On Mac OS X its not supported for the root menu bar and its submenus, as it doesn't fit into the overall platform UI model. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rwxr-xr-xgit-gui.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh
index a5f31dc39..d640b143f 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -1221,6 +1221,10 @@ foreach class {Button Checkbutton Entry Label
}
unset class
+if {[is_Windows] || [is_MacOSX]} {
+ option add *Menu.tearOff 0
+}
+
if {[is_MacOSX]} {
set M1B M1
set M1T Cmd