mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/tk/lib/tk/bindtag.rb: bug fix [ruby-talk: 123667]
* ext/tk/lib/tk/timer.rb: accept :idle for the interval argument * ext/tk/lib/tk.rb: add TkComm._callback_entry?() * ext/tk/lib/multi-tk.rb: add MultiTkIp.cb_entry_class * ext/tk/lib/tk/canvas.rb: use TkComm._callback_entry?() * ext/tk/lib/tk/canvastag.rb: ditto * ext/tk/lib/tk/dialog.rb: ditto * ext/tk/lib/tk/optiondb.rb: ditto * ext/tk/lib/tk/text.rb: ditto * ext/tk/lib/tk/texttag.rb: ditto * ext/tk/lib/tk/textwindow.rb: ditto * ext/tk/lib/tk/timer.rb: ditto * ext/tk/lib/tk/validation.rb: ditto * ext/tk/lib/tkextlib/*: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c89c302d3f
commit
9e51ec666b
24 changed files with 187 additions and 100 deletions
|
@ -350,7 +350,8 @@ module Tk
|
|||
fail RuntimeError, 'component is not assigned to a widget'
|
||||
end
|
||||
end
|
||||
if args[0].kind_of?(Proc) || args[0].kind_of?(Method)
|
||||
# if args[0].kind_of?(Proc) || args[0].kind_of?(Method)
|
||||
if TkComm._callback_entry?(args[0])
|
||||
cmd = args.shift
|
||||
else
|
||||
cmd = Proc.new
|
||||
|
@ -378,7 +379,8 @@ module Tk
|
|||
fail RuntimeError, 'component is not assigned to a widget'
|
||||
end
|
||||
end
|
||||
if args[0].kind_of?(Proc) || args[0].kind_of?(Method)
|
||||
# if args[0].kind_of?(Proc) || args[0].kind_of?(Method)
|
||||
if TkComm._callback_entry?(args[0])
|
||||
cmd = args.shift
|
||||
else
|
||||
cmd = Proc.new
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue