summaryrefslogtreecommitdiff
path: root/ext/tk/sample
diff options
context:
space:
mode:
authora_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-27 09:58:14 +0000
committera_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-27 09:58:14 +0000
commit2c58327fbc83d0b84d06c21c460fa86e7ad6acde (patch)
tree6d0a61bb14ab971394e7538cafb6595d85c5d813 /ext/tk/sample
parentd7bd91ef0e24493ff2fe25e43b3d80ed20a121eb (diff)
Typo in a Tk sample
* ext/tk/sample/tkextlib/bwidget/tree.rb: allways => always git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample')
-rw-r--r--ext/tk/sample/tkextlib/bwidget/tree.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/tk/sample/tkextlib/bwidget/tree.rb b/ext/tk/sample/tkextlib/bwidget/tree.rb
index fbccd0d..8a2566f 100644
--- a/ext/tk/sample/tkextlib/bwidget/tree.rb
+++ b/ext/tk/sample/tkextlib/bwidget/tree.rb
@@ -162,7 +162,7 @@ module DemoTree
Tk::BWidget::Tree::Node.new(tree, node,
:index=>'end', :text=>basename,
:image=>Tk::BWidget::Bitmap.new('folder'),
- :drawcross=>:allways, :data=>f)
+ :drawcross=>:always, :data=>f)
@@count += 1
else
lfiles << basename
@@ -172,7 +172,7 @@ module DemoTree
end
def self.moddir(idx, tree, node)
- if (idx != 0 && tree.itemcget(node, :drawcross).to_s == 'allways')
+ if (idx != 0 && tree.itemcget(node, :drawcross).to_s == 'always')
getdir(tree, node, tree.itemcget(node, :data))
if tree.nodes(node).empty?
tree.itemconfigure(node, :image=>Tk::BWidget::Bitmap.new('folder'))
@@ -225,7 +225,7 @@ module DemoTree
list.delete(*(list.items(0, 'end')))
dir = tree.itemcget(node, :data)
- if tree.itemcget(node, :drawcross).to_s == 'allways'
+ if tree.itemcget(node, :drawcross).to_s == 'always'
getdir(tree, node, dir)
dir = tree.itemcget(node, :data)
end