diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-22 01:37:58 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-22 01:37:58 +0000 |
| commit | a43254a1b105f67ddec53c4289ea6a0b3eb44157 (patch) | |
| tree | 88b09ddbe6afc2025cd0e18cc5b806d968068f5f /ext/tk/lib/tkextlib | |
| parent | b3b2c97e591e16f6cfefd8c613e32315b8b62dc3 (diff) | |
| download | ruby-a43254a1b105f67ddec53c4289ea6a0b3eb44157.tar.gz ruby-a43254a1b105f67ddec53c4289ea6a0b3eb44157.tar.xz ruby-a43254a1b105f67ddec53c4289ea6a0b3eb44157.zip | |
* ext/tk/lib/tkextlib/blt.rb, ext/tk/lib/tkextlib/blt/vector.rb:
fix NameError bug.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkextlib')
| -rw-r--r-- | ext/tk/lib/tkextlib/blt.rb | 4 | ||||
| -rw-r--r-- | ext/tk/lib/tkextlib/blt/vector.rb | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/ext/tk/lib/tkextlib/blt.rb b/ext/tk/lib/tkextlib/blt.rb index 115eb927b..8d58c1f1b 100644 --- a/ext/tk/lib/tkextlib/blt.rb +++ b/ext/tk/lib/tkextlib/blt.rb @@ -26,14 +26,14 @@ module Tk PATCH_LEVEL = tk_call('set', 'blt_patchLevel') begin - lib = INTERP._invoke('set', 'blt_library') + lib = TkCore::INTERP._invoke('set', 'blt_library') rescue lib = '' end LIBRARY = TkVarAccess.new('blt_library', lib) begin - lib = INTERP._invoke('set', 'blt_libPath') + lib = TkCore::INTERP._invoke('set', 'blt_libPath') rescue lib = '' end diff --git a/ext/tk/lib/tkextlib/blt/vector.rb b/ext/tk/lib/tkextlib/blt/vector.rb index 76c12a24e..97fb1b96f 100644 --- a/ext/tk/lib/tkextlib/blt/vector.rb +++ b/ext/tk/lib/tkextlib/blt/vector.rb @@ -49,11 +49,11 @@ module Tk::BLT size = size.join(':') end if size - @id = INTERP._invoke('::blt::vector', 'create', - "#auto(#{size})", *hash_kv(keys)) + @id = TkCore::INTERP._invoke('::blt::vector', 'create', + "#auto(#{size})", *hash_kv(keys)) else - @id = INTERP._invoke('::blt::vector', 'create', - "#auto", *hash_kv(keys)) + @id = TkCore::INTERP._invoke('::blt::vector', 'create', + "#auto", *hash_kv(keys)) end TkVar_ID_TBL.mutex.synchronize{ @@ -68,7 +68,7 @@ module Tk::BLT @trace_opts = nil # teach Tk-ip that @id is global var - INTERP._invoke_without_enc('global', @id) + TkCore::INTERP._invoke_without_enc('global', @id) end def destroy @@ -250,7 +250,7 @@ module Tk::BLT @trace_opts = nil # teach Tk-ip that @id is global var - INTERP._invoke_without_enc('global', @id) + TkCore::INTERP._invoke_without_enc('global', @id) end end end |
