summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb')
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb b/ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb
index c26eda1586..f3c4260482 100644
--- a/ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb
@@ -97,13 +97,13 @@ class Tk::Iwidgets::Scrolledcanvas
*tags.collect{|t| tagid(t)}))
end
- def itembind(tag, context, cmd=Proc.new, args=nil)
- _bind([path, "bind", tagid(tag)], context, cmd, args)
+ def itembind(tag, context, cmd=Proc.new, *args)
+ _bind([path, "bind", tagid(tag)], context, cmd, *args)
self
end
- def itembind_append(tag, context, cmd=Proc.new, args=nil)
- _bind_append([path, "bind", tagid(tag)], context, cmd, args)
+ def itembind_append(tag, context, cmd=Proc.new, *args)
+ _bind_append([path, "bind", tagid(tag)], context, cmd, *args)
self
end