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>
This commit is contained in:
parent
7b85a17b86
commit
3add5d3517
4
git-gui
4
git-gui
@ -1716,9 +1716,7 @@ unset filemask i
|
|||||||
|
|
||||||
proc is_MacOSX {} {
|
proc is_MacOSX {} {
|
||||||
global tcl_platform tk_library
|
global tcl_platform tk_library
|
||||||
if {$tcl_platform(platform) eq {unix}
|
if {[tk windowingsystem] eq {aqua}} {
|
||||||
&& $tcl_platform(os) eq {Darwin}
|
|
||||||
&& [string match /Library/Frameworks/* $tk_library]} {
|
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user