[前][次][番号順一覧][スレッド一覧]

ruby-changes:41265

From: a_matsuda <ko1@a...>
Date: Sun, 27 Dec 2015 18:58:40 +0900 (JST)
Subject: [ruby-changes:41265] a_matsuda:r53337 (trunk): Typo in a Tk sample

a_matsuda	2015-12-27 18:58:14 +0900 (Sun, 27 Dec 2015)

  New Revision: 53337

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53337

  Log:
    Typo in a Tk sample
    
    * ext/tk/sample/tkextlib/bwidget/tree.rb: allways => always

  Modified files:
    trunk/ext/tk/sample/tkextlib/bwidget/tree.rb
Index: ext/tk/sample/tkextlib/bwidget/tree.rb
===================================================================
--- ext/tk/sample/tkextlib/bwidget/tree.rb	(revision 53336)
+++ ext/tk/sample/tkextlib/bwidget/tree.rb	(revision 53337)
@@ -162,7 +162,7 @@ module DemoTree https://github.com/ruby/ruby/blob/trunk/ext/tk/sample/tkextlib/bwidget/tree.rb#L162
         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 https://github.com/ruby/ruby/blob/trunk/ext/tk/sample/tkextlib/bwidget/tree.rb#L172
   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 https://github.com/ruby/ruby/blob/trunk/ext/tk/sample/tkextlib/bwidget/tree.rb#L225
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]