git-gui: Correct is_MacOSX platform test.
Darwn based UNIX systems are not necessarily Mac OS X. However the only windowing system used by Tk that is Mac OS X is 'aqua', and only 'aqua' exists on Mac OS X. Therefore this is a more reliable test for the Macintosh platform. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Nov 21, 2006 at 12:00 UTC
3add5d3517972f6407da450fcd7dff08187cca34
1 file changed
+1
-3
git-gui
+1
-3
@@ -1716,9 +1716,7 @@ unset filemask i
1716
1717
proc is_MacOSX {} {
1718
global tcl_platform tk_library
1719
- if {$tcl_platform(platform) eq {unix}
1720
- && $tcl_platform(os) eq {Darwin}
1721
- && [string match /Library/Frameworks/* $tk_library]} {
1719
+ if {[tk windowingsystem] eq {aqua}} {
1720
return 1
1721
}
1722
return 0