diff options
Diffstat (limited to 'ext/tk/lib/tkextlib')
-rw-r--r-- | ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb | 8 | ||||
-rw-r--r-- | ext/tk/lib/tkextlib/tktable/tktable.rb | 8 | ||||
-rw-r--r-- | ext/tk/lib/tkextlib/treectrl/tktreectrl.rb | 8 |
3 files changed, 12 insertions, 12 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 diff --git a/ext/tk/lib/tkextlib/tktable/tktable.rb b/ext/tk/lib/tkextlib/tktable/tktable.rb index 2f2b14a69f..7182983c04 100644 --- a/ext/tk/lib/tkextlib/tktable/tktable.rb +++ b/ext/tk/lib/tkextlib/tktable/tktable.rb @@ -61,10 +61,10 @@ module Tk::TkTable::ConfigMethod itemconfigure(['tag', tagid(tagOrId)], slot, value) end def tag_configinfo(tagOrId, slot=nil) - itemconfigure(['tag', tagid(tagOrId)], slot) + itemconfiginfo(['tag', tagid(tagOrId)], slot) end def current_tag_configinfo(tagOrId, slot=nil) - itemconfigure(['tag', tagid(tagOrId)], slot) + current_itemconfiginfo(['tag', tagid(tagOrId)], slot) end def window_cget(tagOrId, option) @@ -74,10 +74,10 @@ module Tk::TkTable::ConfigMethod itemconfigure(['window', tagid(tagOrId)], slot, value) end def window_configinfo(tagOrId, slot=nil) - itemconfigure(['window', tagid(tagOrId)], slot) + itemconfiginfo(['window', tagid(tagOrId)], slot) end def current_window_configinfo(tagOrId, slot=nil) - itemconfigure(['window', tagid(tagOrId)], slot) + current_itemconfiginfo(['window', tagid(tagOrId)], slot) end private :itemcget, :itemconfigure 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 |