From: Shawn O. Pearce Date: Tue, 21 Nov 2006 17:00:50 +0000 (-0500) Subject: git-gui: Correct is_MacOSX platform test. X-Git-Tag: gitgui-0.6.0~166 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3add5d3517972f6407da450fcd7dff08187cca34;p=git.git 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 --- diff --git a/git-gui b/git-gui index 3e53fbd62..afd9ac026 100755 --- a/git-gui +++ b/git-gui @@ -1716,9 +1716,7 @@ unset filemask i proc is_MacOSX {} { global tcl_platform tk_library - if {$tcl_platform(platform) eq {unix} - && $tcl_platform(os) eq {Darwin} - && [string match /Library/Frameworks/* $tk_library]} { + if {[tk windowingsystem] eq {aqua}} { return 1 } return 0