summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-01 10:25:51 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-01 10:25:51 +0000
commit90965b65e8ac72d4508052b21d79e0cb2bfd6e2c (patch)
treec071ecab8586b361e907b3ddcb70f241d93ed05d /ext/tk/lib
parentf11187c41e453ddaa88c0d4e36a790d666c47c32 (diff)
downloadruby-90965b65e8ac72d4508052b21d79e0cb2bfd6e2c.tar.gz
ruby-90965b65e8ac72d4508052b21d79e0cb2bfd6e2c.tar.xz
ruby-90965b65e8ac72d4508052b21d79e0cb2bfd6e2c.zip
* ext/tk/lib/tkextlib/tile.rb: fixed autoload for Treeview.
* ext/tk/lib/tkextlib/tile/treeview.rb: replaced `ary2tk_list(items)' with `*items'. * ext/tk/sample/tkextlib/tile: added treeview demo. (tile 0.5 or later is needed) [ruby-dev:26668] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib')
-rw-r--r--ext/tk/lib/tkextlib/tile.rb2
-rw-r--r--ext/tk/lib/tkextlib/tile/treeview.rb14
2 files changed, 8 insertions, 8 deletions
diff --git a/ext/tk/lib/tkextlib/tile.rb b/ext/tk/lib/tkextlib/tile.rb
index 80f2d0ae2..8c5465e9e 100644
--- a/ext/tk/lib/tkextlib/tile.rb
+++ b/ext/tk/lib/tkextlib/tile.rb
@@ -142,7 +142,7 @@ module Tk
autoload :TSquare, 'tkextlib/tile/tsquare'
- autoload :TreeView, 'tkextlib/tile/treeview'
+ autoload :Treeview, 'tkextlib/tile/treeview'
autoload :Style, 'tkextlib/tile/style'
end
diff --git a/ext/tk/lib/tkextlib/tile/treeview.rb b/ext/tk/lib/tkextlib/tile/treeview.rb
index fcd3c7b48..80c26596f 100644
--- a/ext/tk/lib/tkextlib/tile/treeview.rb
+++ b/ext/tk/lib/tkextlib/tile/treeview.rb
@@ -129,17 +129,17 @@ class Tk::Tile::Treeview < TkWindow
list(tk_send_without_enc('children', item))
end
def children=(item, *items)
- tk_send_without_enc('children', item, ary2tk_list(items))
+ tk_send_without_enc('children', item, *items)
items
end
def delete(*items)
- tk_send_without_enc('delete', ary2tk_list(items))
+ tk_send_without_enc('delete', *items)
self
end
def detach(*items)
- tk_send_without_enc('detach', ary2tk_list(items))
+ tk_send_without_enc('detach', *items)
self
end
@@ -193,19 +193,19 @@ class Tk::Tile::Treeview < TkWindow
end
def selection_add(*items)
- tk_send_without_enc('selection', 'add', ary2tk_list(items))
+ tk_send_without_enc('selection', 'add', *items)
self
end
def selection_remove(*items)
- tk_send_without_enc('selection', 'remove', ary2tk_list(items))
+ tk_send_without_enc('selection', 'remove', *items)
self
end
def selection_set(*items)
- tk_send_without_enc('selection', 'set', ary2tk_list(items))
+ tk_send_without_enc('selection', 'set', *items)
self
end
def selection_toggle(*items)
- tk_send_without_enc('selection', 'toggle', ary2tk_list(items))
+ tk_send_without_enc('selection', 'toggle', *items)
self
end