From 51ba626181e8dad48c4481eca99496e31de983f1 Mon Sep 17 00:00:00 2001 From: nagai Date: Tue, 14 Jul 2009 00:28:31 +0000 Subject: * ext/tk/lib/multi-tk.rb: Long-term-callback support isn't stable yet. So, disable the feature and waiting for improvement in the future. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/lib/multi-tk.rb | 3 ++- ext/tk/sample/safe-tk.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/tk/lib/multi-tk.rb b/ext/tk/lib/multi-tk.rb index c10c349d0..c491d0c7b 100644 --- a/ext/tk/lib/multi-tk.rb +++ b/ext/tk/lib/multi-tk.rb @@ -2182,7 +2182,8 @@ class MultiTkIp end private :eval_proc_core -if WITH_RUBY_VM ### Ruby 1.9 +if false && WITH_RUBY_VM ### Ruby 1.9 + # Not stable, so disable this feature def eval_callback(*args) if block_given? cmd = Proc.new diff --git a/ext/tk/sample/safe-tk.rb b/ext/tk/sample/safe-tk.rb index 148548efb..2aeae235d 100644 --- a/ext/tk/sample/safe-tk.rb +++ b/ext/tk/sample/safe-tk.rb @@ -81,7 +81,7 @@ p ip.eval_proc(proc{ :command=>proc{ MultiTkIp._proc_on_current_safelevel(y).call(l) }).pack(:fill=>:x, :padx=>5) -if Object.const_defined?(:RubyVM) && ::RubyVM.class == Class +if false && Object.const_defined?(:RubyVM) && ::RubyVM.class == Class TkButton.new(:text=>':command=>proc{Thread.new(l, &y).value}', :command=>proc{ Thread.new(l, &y).value -- cgit