mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 17:14:01 +02:00
* ext/tk/lib/tk/event.rb: remove $LOADED_FEATURES trick
* ext/tk/lib/tk.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0996725681
commit
2b2c7c36d1
3 changed files with 18 additions and 14 deletions
|
@ -1060,10 +1060,9 @@ module TkCore
|
|||
|
||||
WIDGET_DESTROY_HOOK = '<WIDGET_DESTROY_HOOK>'
|
||||
INTERP._invoke_without_enc('event', 'add',
|
||||
"<#{WIDGET_DESTROY_HOOK}>", 'Destroy')
|
||||
"<#{WIDGET_DESTROY_HOOK}>", '<Destroy>')
|
||||
INTERP._invoke_without_enc('bind', 'all', "<#{WIDGET_DESTROY_HOOK}>",
|
||||
install_bind(proc{|xpath|
|
||||
path = xpath[1..-1]
|
||||
install_cmd(proc{|path|
|
||||
unless TkCore::INTERP.deleted?
|
||||
if (widget = TkCore::INTERP.tk_windows[path])
|
||||
if widget.respond_to?(:__destroy_hook__)
|
||||
|
@ -1074,7 +1073,8 @@ module TkCore
|
|||
end
|
||||
end
|
||||
end
|
||||
}, 'x%W'))
|
||||
}) << ' %W')
|
||||
|
||||
INTERP.add_tk_procs(TclTkLib::FINALIZE_PROC_NAME, '',
|
||||
"bind all <#{WIDGET_DESTROY_HOOK}> {}")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue