summaryrefslogtreecommitdiff
path: root/ext/tk/sample/tkextlib/treectrl/explorer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/sample/tkextlib/treectrl/explorer.rb')
-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 8398cac199..b384fb7c8e 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