diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-10 05:46:55 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-10 05:46:55 +0000 |
commit | ece1798ca3e85b92f84aeddf5e83555f0d068f8b (patch) | |
tree | 447d490a0b7d02b56534e38726d114fe2b1b6ebb /ext/tk | |
parent | 823767631811ba2ba4daca873156449210362fa5 (diff) | |
download | ruby-ece1798ca3e85b92f84aeddf5e83555f0d068f8b.tar.gz ruby-ece1798ca3e85b92f84aeddf5e83555f0d068f8b.tar.xz ruby-ece1798ca3e85b92f84aeddf5e83555f0d068f8b.zip |
commit miss...
* sample/tkextlib/treectrl/explorer.rb: File.executable? returns true
even if it's plain text file. (this function only checks access right)
again.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
-rw-r--r-- | ext/tk/sample/tkextlib/treectrl/explorer.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/tk/sample/tkextlib/treectrl/explorer.rb b/ext/tk/sample/tkextlib/treectrl/explorer.rb index b384fb7c8..242777cbc 100644 --- a/ext/tk/sample/tkextlib/treectrl/explorer.rb +++ b/ext/tk/sample/tkextlib/treectrl/explorer.rb @@ -144,11 +144,7 @@ def demoExplorerDetails(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 |