summaryrefslogtreecommitdiffstats
path: root/ext/tk/sample/tkextlib
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-09 05:28:19 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-09 05:28:19 +0000
commitf7132983798812a3b05887cc99337241094d5b47 (patch)
tree6474335925212df5b472fa238f781a3241bda676 /ext/tk/sample/tkextlib
parent11971eada421922e1481d238fcb5015dd6b01a7a (diff)
downloadruby-f7132983798812a3b05887cc99337241094d5b47.tar.gz
ruby-f7132983798812a3b05887cc99337241094d5b47.tar.xz
ruby-f7132983798812a3b05887cc99337241094d5b47.zip
* ext/tk/sample/tkextlib/treectrl/explorer.rb: File.executable? returns true
even if it's plain text file. (this function only checks access right) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/tkextlib')
-rw-r--r--ext/tk/sample/tkextlib/treectrl/explorer.rb12
1 files changed, 2 insertions, 10 deletions
diff --git a/ext/tk/sample/tkextlib/treectrl/explorer.rb b/ext/tk/sample/tkextlib/treectrl/explorer.rb
index 8398cac19..b384fb7c8 100644
--- a/ext/tk/sample/tkextlib/treectrl/explorer.rb
+++ b/ext/tk/sample/tkextlib/treectrl/explorer.rb
@@ -307,11 +307,7 @@ def demoExplorerLargeIcons(t)
when '.txt'
img = 'big-txt'
else
- if FileTest.executable?(file)
- img = 'big-exe'
- else
- img = 'big-file'
- end
+ img = 'big-file'
end
type = ext.upcase
@@ -414,11 +410,7 @@ def demoExplorerList(t)
when '.txt'
img = 'small-txt'
else
- if FileTest.executable?(file)
- img = 'small-exe'
- else
- img = 'small-file'
- end
+ img = 'small-file'
end
type = ext.upcase