mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/tk/tcltklib.c: make SEGV risk lower at exit.
* ext/tk/lib/tk.rb: ditto. * ext/tk/lib/multi-tk.rb: fail to call function-style methods on slave interpreters. The strategy (MultiTkIp_PseudoToplevel_Evaluable) to fix the problem is a little tricky. You may have to take care of conflicting with it. * ext/tk/lib/tk.rb: a little change for the pseudo-toplevel strategy. * ext/tk/lib/tk/font.rb: ditto. * ext/tk/lib/tk/msgcat.rb: ditto. * ext/tk/lib/tkextlib/itk/incr_tk.rb: ditto. * ext/tk/sample/demos-en/widget: fail to call function-style methods on sample scripts. To fix it, a strategy which similar to the way on MultiTiIp is used. Please take care when re-write and re-run a demo script on the Widget-Demo code viewer. * ext/tk/sample/demos-jp/widget: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a1a07fbfa1
commit
d2271cbdd1
9 changed files with 543 additions and 40 deletions
|
@ -289,7 +289,8 @@ module Tk
|
|||
end
|
||||
|
||||
# unknown method
|
||||
fail RuntimeError, "unknown method '#{name}' for #{self.inspect}"
|
||||
super(id, *args)
|
||||
# fail RuntimeError, "unknown method '#{name}' for #{self.inspect}"
|
||||
end
|
||||
|
||||
def tk_send(cmd, *rest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue