summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-11 07:17:46 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-11 07:17:46 +0000
commit1e96837fc2b3bb3ed5af2fdbde0686f06d25dbd9 (patch)
treea44abd7c1fbab973df8fb20605c0596501185fea
parent7d1b6eef0c4eede36eae6ed1ccfc03c83d732ec3 (diff)
downloadruby-1e96837fc2b3bb3ed5af2fdbde0686f06d25dbd9.tar.gz
ruby-1e96837fc2b3bb3ed5af2fdbde0686f06d25dbd9.tar.xz
ruby-1e96837fc2b3bb3ed5af2fdbde0686f06d25dbd9.zip
tk.rb :
* not create a Tcl/Tk interpreter if already defined TkCore::INTERP * bugfix on TkWindow#configure git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/tk/lib/tk.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index 3c399a24a..b9280e290 100644
--- a/ext/tk/lib/tk.rb
+++ b/ext/tk/lib/tk.rb
@@ -636,7 +636,7 @@ module TkCore
include TkComm
extend TkComm
- INTERP = TclTkIp.new
+ INTERP = TclTkIp.new unless self.const_defined? :INTERP
INTERP._invoke("proc", "rb_out", "args", <<-'EOL')
regsub -all {!} $args {\\!} args
@@ -3138,7 +3138,7 @@ class TkObject<TkKernel
slot['latinfont'] || slot[:latinfont] ||
slot['asciifont'] || slot[:asciifont] )
font_configure(slot)
- else
+ elsif slot.size > 0
tk_call path, 'configure', *hash_kv(slot)
end