summaryrefslogtreecommitdiff
path: root/git-gui
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2006-11-21 12:00:50 -0500
committerShawn O. Pearce <spearce@spearce.org>2006-11-21 12:00:50 -0500
commit3add5d3517972f6407da450fcd7dff08187cca34 (patch)
treea5414286c20f289f09af8f788868fb0e0577b373 /git-gui
parent7b85a17b86062c87ceebbf70acfbd62e00cd4bac (diff)
downloadgit-3add5d3517972f6407da450fcd7dff08187cca34.tar.gz
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>
Diffstat (limited to 'git-gui')
-rwxr-xr-xgit-gui4
1 files changed, 1 insertions, 3 deletions
diff --git a/git-gui b/git-gui
index 3e53fbd623..afd9ac026e 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