summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-07 14:53:02 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-07 14:53:02 +0000
commit0be5de09a047e89523acfd7a07eb7e75b40db52a (patch)
treea626610a621907f04f452642dd2ffb3d34077499 /ext/tk/lib/tkextlib/treectrl/tktreectrl.rb
parentd55f1f480a83b3f91d7d32679da3d6d55a5ae30f (diff)
* 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/branches/ruby_1_8@7223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkextlib/treectrl/tktreectrl.rb')
-rw-r--r--ext/tk/lib/tkextlib/treectrl/tktreectrl.rb8
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