summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkextlib
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-21 17:34:12 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-21 17:34:12 +0000
commit40b89d6cf127f99f5a34f8fbd8d7bff825718a2d (patch)
tree3ff2923f101fbf0be117bc4fa4dd08afd95661bd /ext/tk/lib/tkextlib
parentf8dd75cbcc43bb68b1334108105e31cfbc4b09d0 (diff)
* 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
Diffstat (limited to 'ext/tk/lib/tkextlib')
-rw-r--r--ext/tk/lib/tkextlib/SUPPORT_STATUS2
-rw-r--r--ext/tk/lib/tkextlib/tile.rb6
2 files changed, 6 insertions, 2 deletions
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)