diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-07 14:53:02 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-07 14:53:02 +0000 |
commit | c2ac862f1a3a1d387f65d4cd6342b4a836b03893 (patch) | |
tree | 37ee1f403ca1e6699763b08d30545e690e7fd498 /ext/tk/lib/tkextlib/treectrl | |
parent | 4cbaddcf8c61f411d54c2e7799e234972dd382ed (diff) | |
download | ruby-c2ac862f1a3a1d387f65d4cd6342b4a836b03893.tar.gz |
* ext/tk/lib/tk.rb: bind-event methods accept multi substitution arguments.
* ext/tk/lib/tk/canvas.rb: ditto.
* ext/tk/lib/tk/canvastag.rb: ditto.
* ext/tk/lib/tk/text.rb: ditto.
* ext/tk/lib/tk/texttag.rb: ditto.
* ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb: ditto.
* ext/tk/lib/tkextlib/tktable/tktable.rb: ditto.
* ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkextlib/treectrl')
-rw-r--r-- | ext/tk/lib/tkextlib/treectrl/tktreectrl.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb b/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb index cc23857c5f..729007edfb 100644 --- a/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb +++ b/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb @@ -743,13 +743,13 @@ class Tk::TreeCtrl marquee_visible() end - def notify_bind(obj, event, cmd=Proc.new, args=nil) - _bind([@path, 'notify', 'bind', obj], event, cmd, args) + def notify_bind(obj, event, cmd=Proc.new, *args) + _bind([@path, 'notify', 'bind', obj], event, cmd, *args) self end - def notify_bind_append(obj, event, cmd=Proc.new, args=nil) - _bind([@path, 'notify', 'bind', obj], event, cmd, args) + def notify_bind_append(obj, event, cmd=Proc.new, *args) + _bind([@path, 'notify', 'bind', obj], event, cmd, *args) self end |