diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-09 05:28:19 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-09 05:28:19 +0000 |
| commit | 43bee1af37ecbb03c68121db584679d08a0f7970 (patch) | |
| tree | 0fb56b1f3f7a0b5caa759d18875efee35d5ffc07 | |
| parent | 257b8385f6ed0d38c181e1a72658a90a0b9655ac (diff) | |
| download | ruby-43bee1af37ecbb03c68121db584679d08a0f7970.tar.gz ruby-43bee1af37ecbb03c68121db584679d08a0f7970.tar.xz ruby-43bee1af37ecbb03c68121db584679d08a0f7970.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/branches/ruby_1_8@8287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ext/tk/ChangeLog.tkextlib | 5 | ||||
| -rw-r--r-- | ext/tk/sample/tkextlib/treectrl/explorer.rb | 12 |
2 files changed, 7 insertions, 10 deletions
diff --git a/ext/tk/ChangeLog.tkextlib b/ext/tk/ChangeLog.tkextlib index ed1db5949..16b5da280 100644 --- a/ext/tk/ChangeLog.tkextlib +++ b/ext/tk/ChangeLog.tkextlib @@ -1,5 +1,10 @@ 2005-04-09 ocean <ocean@ruby-lang.org> + * sample/tkextlib/treectrl/explorer.rb: File.executable? returns true + even if it's plain text file. (this function only checks access right) + +2005-04-09 ocean <ocean@ruby-lang.org> + * sample/tkextlib/treectrl/{help,www-options}.rb: fixed typo. (click or resize column header) 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 |
