diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-30 14:53:52 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-30 14:53:52 +0000 |
commit | 66b1af33af14dd3fbdb1e59c28b994de7f7544ed (patch) | |
tree | e598fbcd86aca92133bbb5c368b63fb6555648d5 /ext/tk/lib/tk | |
parent | 39053cfbbd4d450725f8c52031d16e6adaef9e75 (diff) |
* ext/tk/lib/macpkg.rb: add PACKAGE_NAME information of Tcl/Tk Extension.
* ext/tk/lib/tk/msgcat.rb: ditto.
* ext/tk/lib/tk/winpkg.rb: ditto.
* ext/tk/lib/tkextlib/*: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk')
-rw-r--r-- | ext/tk/lib/tk/macpkg.rb | 5 | ||||
-rw-r--r-- | ext/tk/lib/tk/msgcat.rb | 5 | ||||
-rw-r--r-- | ext/tk/lib/tk/winpkg.rb | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/ext/tk/lib/tk/macpkg.rb b/ext/tk/lib/tk/macpkg.rb index d67a19745b..1802073f46 100644 --- a/ext/tk/lib/tk/macpkg.rb +++ b/ext/tk/lib/tk/macpkg.rb @@ -26,6 +26,11 @@ module TkMacResource TkCommandNames = ['resource'.freeze].freeze + PACKAGE_NAME = 'resource'.freeze + def self.package_name + PACKAGE_NAME + end + tk_call_without_enc('package', 'require', 'resource') def close(rsrcRef) diff --git a/ext/tk/lib/tk/msgcat.rb b/ext/tk/lib/tk/msgcat.rb index 4e095c6fc0..eee331650d 100644 --- a/ext/tk/lib/tk/msgcat.rb +++ b/ext/tk/lib/tk/msgcat.rb @@ -23,6 +23,11 @@ class TkMsgCatalog < TkObject tk_call_without_enc('package', 'require', 'Tcl', '8.2') + PACKAGE_NAME = 'msgcat'.freeze + def self.package_name + PACKAGE_NAME + end + if self.const_defined? :FORCE_VERSION tk_call_without_enc('package', 'require', 'msgcat', FORCE_VERSION) else diff --git a/ext/tk/lib/tk/winpkg.rb b/ext/tk/lib/tk/winpkg.rb index d6f7a0e9d4..737fb959b5 100644 --- a/ext/tk/lib/tk/winpkg.rb +++ b/ext/tk/lib/tk/winpkg.rb @@ -13,6 +13,11 @@ module TkWinDDE TkCommandNames = ['dde'.freeze].freeze + PACKAGE_NAME = 'dde'.freeze + def self.package_name + PACKAGE_NAME + end + if self.const_defined? :FORCE_VERSION tk_call_without_enc('package', 'require', 'dde', FORCE_VERSION) else |