From 40b89d6cf127f99f5a34f8fbd8d7bff825718a2d Mon Sep 17 00:00:00 2001 From: nagai Date: Mon, 21 Nov 2005 17:34:12 +0000 Subject: * ext/tk/lib/tkextlib/tile.rb: bug fix (Tk::Tile::USE_TTK_NAMESPACE is not defined). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/lib/tkextlib/SUPPORT_STATUS | 2 +- ext/tk/lib/tkextlib/tile.rb | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'ext/tk/lib/tkextlib') diff --git a/ext/tk/lib/tkextlib/SUPPORT_STATUS b/ext/tk/lib/tkextlib/SUPPORT_STATUS index 33eded5050..d7d9b31a57 100644 --- a/ext/tk/lib/tkextlib/SUPPORT_STATUS +++ b/ext/tk/lib/tkextlib/SUPPORT_STATUS @@ -1,7 +1,7 @@ [ current support status of Tcl/Tk extensions ] - *******<<< RELEASE_DATE of the libraries : 2005/10/23 >>>******* + *******<<< RELEASE_DATE of the libraries : 2005/11/22 >>>******* The following list shows *CURRENT* status when this file was modifyed at last. If you want to add other Tcl/Tk extensions to the planed list diff --git a/ext/tk/lib/tkextlib/tile.rb b/ext/tk/lib/tkextlib/tile.rb index de079ca53d..690f93f029 100644 --- a/ext/tk/lib/tkextlib/tile.rb +++ b/ext/tk/lib/tkextlib/tile.rb @@ -14,6 +14,7 @@ require 'tkextlib/tile/setup.rb' # load package # TkPackage.require('tile', '0.4') # TkPackage.require('tile', '0.6') +# TkPackage.require('tile', '0.7') verstr = TkPackage.require('tile') ver = verstr.split('.') if ver[0].to_i == 0 && ver[1].to_i <= 4 @@ -21,6 +22,7 @@ if ver[0].to_i == 0 && ver[1].to_i <= 4 module Tk module Tile USE_TILE_NAMESPACE = true + USE_TTK_NAMESPACE = false TILE_SPEC_VERSION_ID = 0 end end @@ -29,6 +31,7 @@ elsif ver[0].to_i == 0 && ver[1].to_i <= 6 module Tk module Tile USE_TILE_NAMESPACE = true + USE_TTK_NAMESPACE = true TILE_SPEC_VERSION_ID = 5 end end @@ -37,6 +40,7 @@ else module Tk module Tile USE_TILE_NAMESPACE = false + USE_TTK_NAMESPACE = true TILE_SPEC_VERSION_ID = 7 end end @@ -61,7 +65,7 @@ module Tk end def self.__Import_Tile_Widgets__! - Tk.tk_call('namespace', 'import', 'ttk::*') + Tk.tk_call('namespace', 'import', '-force', 'ttk::*') end def self.load_images(imgdir, pat=TkComm::None) -- cgit v1.2.3