diff options
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 |