summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb
diff options
context:
space:
mode:
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