diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-24 04:34:26 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-24 04:34:26 +0000 |
commit | 8b1de0b1ad49733abeddd8be359ae816b29de59a (patch) | |
tree | a7ed03dd3f6442635f694c4367bcd94be57f6dbd /ext/tk/lib/tkcanvas.rb | |
parent | 24b9bdca25dc431aff935df7739b9c5ea0ee4077 (diff) | |
download | ruby-8b1de0b1ad49733abeddd8be359ae816b29de59a.tar.gz |
2000-05-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkcanvas.rb')
-rw-r--r-- | ext/tk/lib/tkcanvas.rb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ext/tk/lib/tkcanvas.rb b/ext/tk/lib/tkcanvas.rb index 80c36f6ed8..914bfe01e3 100644 --- a/ext/tk/lib/tkcanvas.rb +++ b/ext/tk/lib/tkcanvas.rb @@ -216,7 +216,7 @@ class TkCanvas<TkWindow end def find(mode, *args) - list(tk_send 'find', mode, *args).filter{|id| + list(tk_send 'find', mode, *args).collect!{|id| TkcItem.id2obj(id) } end @@ -368,13 +368,6 @@ class TkCanvas<TkWindow def itemtype(tag) TkcItem.type2class(tk_send 'type', tagid(tag)) end - - def xview(*index) - tk_send 'xview', *index - end - def yview(*index) - tk_send 'yview', *index - end end module TkcTagAccess @@ -725,7 +718,7 @@ class TkImage<TkObject end def TkImage.names - Tk.tk_call('image', 'names').split.filter{|id| + Tk.tk_call('image', 'names').split.collect!{|id| (Tk_IMGTBL[id])? Tk_IMGTBL[id] : id } end |