diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-15 11:24:22 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-09-15 11:24:22 +0000 |
| commit | 28d9e45f7666aef8eb6bb32c730187024ed687e2 (patch) | |
| tree | 5c20095bb6bcbda076d88c6ce601d03dd823b02e | |
| parent | 8120eb66a76130b1a3f2c8e47720e03c82735c70 (diff) | |
| download | ruby-28d9e45f7666aef8eb6bb32c730187024ed687e2.tar.gz ruby-28d9e45f7666aef8eb6bb32c730187024ed687e2.tar.xz ruby-28d9e45f7666aef8eb6bb32c730187024ed687e2.zip | |
* ext/tk/lib/tkoptdb-safeTk.rb: fix a bug depend on the changes of MultiTkIp
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | ext/tk/sample/tkoptdb-safeTk.rb | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Wed Sep 15 20:22:23 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> + + * ext/tk/sample/tkoptdb-safeTk.rb: fix a bug depend on the changes + of MultiTkIp + Tue Sep 14 23:54:11 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string was en-bugged by diff --git a/ext/tk/sample/tkoptdb-safeTk.rb b/ext/tk/sample/tkoptdb-safeTk.rb index b41c856d5..f6c3ca4ee 100644 --- a/ext/tk/sample/tkoptdb-safeTk.rb +++ b/ext/tk/sample/tkoptdb-safeTk.rb @@ -26,6 +26,7 @@ else ent = TkOptionDB.read_entries(File.expand_path('resource.en', File.dirname(__FILE__))) end + file = File.expand_path('tkoptdb.rb', File.dirname(__FILE__)) ip = MultiTkIp.new_safeTk{ @@ -50,12 +51,11 @@ print "ip.eval_proc{}, which includes insecure operiation in the given block, re print "If a proc object is given, the proc is evaluated on the safe-level which is kept on the proc :: ip.eval_proc( proc{$SAFE} ) ==> ", ip.eval_proc(proc{$SAFE}), "\n" safe0_cmd = Proc.new{ + print 'safe0_cmd safe-level == ', $SAFE, "\n" # This proc object keeps current safe-level ($SAFE==0). load file } -ip.eval_proc(safe0_cmd) - +ip.eval_proc{safe0_cmd.call} # Tk.mainloop is ignored on the slave-IP - Tk.mainloop |
