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

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>

Shawn O. Pearce committed May 28, 2007 at 11:34 UTC f60fdd0eaaaf92882f3e6aeb19bb85482fab6d39
1 file changed +4
git-gui.sh
+4
@@ -1221,6 +1221,10 @@ foreach class {Button Checkbutton Entry Label
1221 }
1222 unset class
1223
1224 +if {[is_Windows] || [is_MacOSX]} {
1225 + option add *Menu.tearOff 0
1226 +}
1227 +
1228 if {[is_MacOSX]} {
1229 set M1B M1
1230 set M1T Cmd