summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f837170)
raw | patch | inline | side by side (parent: f837170)
author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 28 May 2007 15:34:47 +0000 (11:34 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 28 May 2007 21:50:41 +0000 (17:50 -0400) |
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>
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>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index a5f31dc3914bb4965b8722237657bf7ad8aff3ff..d640b143f31510f3a1de41444def5b71f0a47e4e 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
}
unset class
+if {[is_Windows] || [is_MacOSX]} {
+ option add *Menu.tearOff 0
+}
+
if {[is_MacOSX]} {
set M1B M1
set M1T Cmd