From 66b1af33af14dd3fbdb1e59c28b994de7f7544ed Mon Sep 17 00:00:00 2001 From: nagai Date: Mon, 30 May 2005 14:53:52 +0000 Subject: * 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 --- ext/tk/lib/tkextlib/ICONS/icons.rb | 5 +++++ ext/tk/lib/tkextlib/blt.rb | 6 +++++- ext/tk/lib/tkextlib/bwidget.rb | 5 +++++ ext/tk/lib/tkextlib/itcl/incr_tcl.rb | 5 +++++ ext/tk/lib/tkextlib/itk/incr_tk.rb | 5 +++++ ext/tk/lib/tkextlib/iwidgets.rb | 5 +++++ ext/tk/lib/tkextlib/tcllib/autoscroll.rb | 5 +++++ ext/tk/lib/tkextlib/tcllib/ctext.rb | 5 +++++ ext/tk/lib/tkextlib/tcllib/cursor.rb | 5 +++++ ext/tk/lib/tkextlib/tcllib/datefield.rb | 5 +++++ ext/tk/lib/tkextlib/tcllib/ico.rb | 5 +++++ ext/tk/lib/tkextlib/tcllib/ip_entry.rb | 5 +++++ ext/tk/lib/tkextlib/tcllib/plotchart.rb | 5 +++++ ext/tk/lib/tkextlib/tcllib/style.rb | 5 +++++ ext/tk/lib/tkextlib/tcllib/tkpiechart.rb | 5 +++++ ext/tk/lib/tkextlib/tclx/tclx.rb | 5 +++++ ext/tk/lib/tkextlib/tile.rb | 5 +++++ ext/tk/lib/tkextlib/tkDND/shape.rb | 6 ++++++ ext/tk/lib/tkextlib/tkDND/tkdnd.rb | 5 +++++ ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/bmp.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/gif.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/ico.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/jpeg.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/pcx.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/pixmap.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/png.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/ppm.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/ps.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/sgi.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/sun.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/tga.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/tiff.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/window.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/xbm.rb | 5 +++++ ext/tk/lib/tkextlib/tkimg/xpm.rb | 5 +++++ ext/tk/lib/tkextlib/tktable/tktable.rb | 5 +++++ ext/tk/lib/tkextlib/tktrans/tktrans.rb | 5 +++++ ext/tk/lib/tkextlib/treectrl/tktreectrl.rb | 5 +++++ ext/tk/lib/tkextlib/vu.rb | 5 +++++ ext/tk/lib/tkextlib/winico/winico.rb | 5 +++++ 42 files changed, 211 insertions(+), 1 deletion(-) (limited to 'ext/tk/lib/tkextlib') diff --git a/ext/tk/lib/tkextlib/ICONS/icons.rb b/ext/tk/lib/tkextlib/ICONS/icons.rb index 20d706df65..68e7656945 100644 --- a/ext/tk/lib/tkextlib/ICONS/icons.rb +++ b/ext/tk/lib/tkextlib/ICONS/icons.rb @@ -18,6 +18,11 @@ module Tk class ICONS < TkImage extend Tk + PACKAGE_NAME = 'icons'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('icons') diff --git a/ext/tk/lib/tkextlib/blt.rb b/ext/tk/lib/tkextlib/blt.rb index 60ed39a0cf..8ac8605513 100644 --- a/ext/tk/lib/tkextlib/blt.rb +++ b/ext/tk/lib/tkextlib/blt.rb @@ -38,7 +38,11 @@ module Tk lib = '' end LIB_PATH = TkVarAccess.new('blt_libPath', lib) - + + PACKAGE_NAME = 'BLT'.freeze + def self.package_name + PACKAGE_NAME + end def self.package_version begin diff --git a/ext/tk/lib/tkextlib/bwidget.rb b/ext/tk/lib/tkextlib/bwidget.rb index 56009f4694..62631d8b54 100644 --- a/ext/tk/lib/tkextlib/bwidget.rb +++ b/ext/tk/lib/tkextlib/bwidget.rb @@ -23,6 +23,11 @@ module Tk LIBRARY = tk_call('set', '::BWIDGET::LIBRARY') + PACKAGE_NAME = 'BWidget'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('BWidget') diff --git a/ext/tk/lib/tkextlib/itcl/incr_tcl.rb b/ext/tk/lib/tkextlib/itcl/incr_tcl.rb index c03f3c36cb..07abf3a7bf 100644 --- a/ext/tk/lib/tkextlib/itcl/incr_tcl.rb +++ b/ext/tk/lib/tkextlib/itcl/incr_tcl.rb @@ -22,6 +22,11 @@ module Tk VERSION = TkCore::INTERP._invoke("set", "::itcl::version").freeze PATCHLEVEL = TkCore::INTERP._invoke("set", "::itcl::patchLevel").freeze + PACKAGE_NAME = 'Itcl'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('Itcl') diff --git a/ext/tk/lib/tkextlib/itk/incr_tk.rb b/ext/tk/lib/tkextlib/itk/incr_tk.rb index cdc05bde94..9f96109f1a 100644 --- a/ext/tk/lib/tkextlib/itk/incr_tk.rb +++ b/ext/tk/lib/tkextlib/itk/incr_tk.rb @@ -20,6 +20,11 @@ module Tk LIBRARY = TkVarAccess.new('::itk::library') + PACKAGE_NAME = 'Itk'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('Itk') diff --git a/ext/tk/lib/tkextlib/iwidgets.rb b/ext/tk/lib/tkextlib/iwidgets.rb index 5ef82f68ca..ebd4cf7507 100644 --- a/ext/tk/lib/tkextlib/iwidgets.rb +++ b/ext/tk/lib/tkextlib/iwidgets.rb @@ -23,6 +23,11 @@ module Tk extend TkCore + PACKAGE_NAME = 'Iwidgets'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('Iwidgets') diff --git a/ext/tk/lib/tkextlib/tcllib/autoscroll.rb b/ext/tk/lib/tkextlib/tcllib/autoscroll.rb index 256b01ba87..f2c898458f 100644 --- a/ext/tk/lib/tkextlib/tcllib/autoscroll.rb +++ b/ext/tk/lib/tkextlib/tcllib/autoscroll.rb @@ -31,6 +31,11 @@ require 'tkextlib/tcllib.rb' module Tk module Tcllib module Autoscroll + PACKAGE_NAME = 'autoscroll'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('autoscroll') diff --git a/ext/tk/lib/tkextlib/tcllib/ctext.rb b/ext/tk/lib/tkextlib/tcllib/ctext.rb index 342b268c70..aa2ef20365 100644 --- a/ext/tk/lib/tkextlib/tcllib/ctext.rb +++ b/ext/tk/lib/tkextlib/tcllib/ctext.rb @@ -16,6 +16,11 @@ TkPackage.require('ctext') module Tk module Tcllib class CText < TkText + PACKAGE_NAME = 'ctext'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('ctext') diff --git a/ext/tk/lib/tkextlib/tcllib/cursor.rb b/ext/tk/lib/tkextlib/tcllib/cursor.rb index 86a68497b4..9bb828e8dd 100644 --- a/ext/tk/lib/tkextlib/tcllib/cursor.rb +++ b/ext/tk/lib/tkextlib/tcllib/cursor.rb @@ -12,6 +12,11 @@ require 'tkextlib/tcllib.rb' module Tk module Tcllib module Cursor + PACKAGE_NAME = 'cursor'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('cursor') diff --git a/ext/tk/lib/tkextlib/tcllib/datefield.rb b/ext/tk/lib/tkextlib/tcllib/datefield.rb index fb11da2009..bd84488101 100644 --- a/ext/tk/lib/tkextlib/tcllib/datefield.rb +++ b/ext/tk/lib/tkextlib/tcllib/datefield.rb @@ -25,6 +25,11 @@ TkPackage.require('datefield') module Tk module Tcllib class Datefield < TkEntry + PACKAGE_NAME = 'datefield'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('datefield') diff --git a/ext/tk/lib/tkextlib/tcllib/ico.rb b/ext/tk/lib/tkextlib/tcllib/ico.rb index c87275126e..3beeb11a4d 100644 --- a/ext/tk/lib/tkextlib/tcllib/ico.rb +++ b/ext/tk/lib/tkextlib/tcllib/ico.rb @@ -16,6 +16,11 @@ TkPackage.require('ico') module Tk module Tcllib class ICO < TkImage + PACKAGE_NAME = 'ico'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('ico') diff --git a/ext/tk/lib/tkextlib/tcllib/ip_entry.rb b/ext/tk/lib/tkextlib/tcllib/ip_entry.rb index a71aaf8792..e24d1ba147 100644 --- a/ext/tk/lib/tkextlib/tcllib/ip_entry.rb +++ b/ext/tk/lib/tkextlib/tcllib/ip_entry.rb @@ -19,6 +19,11 @@ TkPackage.require('ipentry') module Tk module Tcllib class IP_Entry < TkEntry + PACKAGE_NAME = 'ipentry'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('ipentry') diff --git a/ext/tk/lib/tkextlib/tcllib/plotchart.rb b/ext/tk/lib/tkextlib/tcllib/plotchart.rb index 5603ce1283..a8d2be00a8 100644 --- a/ext/tk/lib/tkextlib/tcllib/plotchart.rb +++ b/ext/tk/lib/tkextlib/tcllib/plotchart.rb @@ -66,6 +66,11 @@ TkPackage.require('Plotchart') module Tk module Tcllib module Plotchart + PACKAGE_NAME = 'Plotchart'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('Plotchart') diff --git a/ext/tk/lib/tkextlib/tcllib/style.rb b/ext/tk/lib/tkextlib/tcllib/style.rb index 72a99d80fc..33d103a452 100644 --- a/ext/tk/lib/tkextlib/tcllib/style.rb +++ b/ext/tk/lib/tkextlib/tcllib/style.rb @@ -11,6 +11,11 @@ require 'tkextlib/tcllib.rb' module Tk::Tcllib module Style + PACKAGE_NAME = 'style'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('style') diff --git a/ext/tk/lib/tkextlib/tcllib/tkpiechart.rb b/ext/tk/lib/tkextlib/tcllib/tkpiechart.rb index 4e6008bb3b..5fb89dd734 100644 --- a/ext/tk/lib/tkextlib/tcllib/tkpiechart.rb +++ b/ext/tk/lib/tkextlib/tcllib/tkpiechart.rb @@ -21,6 +21,11 @@ module Tk end module Tk::Tcllib::Tkpiechart + PACKAGE_NAME = 'tkpiechart'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('tkpiechart') diff --git a/ext/tk/lib/tkextlib/tclx/tclx.rb b/ext/tk/lib/tkextlib/tclx/tclx.rb index 44799acbc9..5a908fcd0b 100644 --- a/ext/tk/lib/tkextlib/tclx/tclx.rb +++ b/ext/tk/lib/tkextlib/tclx/tclx.rb @@ -15,6 +15,11 @@ TkPackage.require('Tclx') module Tk module TclX + PACKAGE_NAME = 'Tclx'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('Tclx') diff --git a/ext/tk/lib/tkextlib/tile.rb b/ext/tk/lib/tkextlib/tile.rb index c79866eb13..80f2d0ae2c 100644 --- a/ext/tk/lib/tkextlib/tile.rb +++ b/ext/tk/lib/tkextlib/tile.rb @@ -37,6 +37,11 @@ module Tk module Tile TkComm::TkExtlibAutoloadModule.unshift(self) + PACKAGE_NAME = 'tile'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('tile') diff --git a/ext/tk/lib/tkextlib/tkDND/shape.rb b/ext/tk/lib/tkextlib/tkDND/shape.rb index 0f6a5f0a30..570c93b0d9 100644 --- a/ext/tk/lib/tkextlib/tkDND/shape.rb +++ b/ext/tk/lib/tkextlib/tkDND/shape.rb @@ -18,6 +18,12 @@ module Tk module TkDND module Shape extend TkCore + + PACKAGE_NAME = 'shape'.freeze + def self.package_name + PACKAGE_NAME + end + =begin def self.package_version begin diff --git a/ext/tk/lib/tkextlib/tkDND/tkdnd.rb b/ext/tk/lib/tkextlib/tkDND/tkdnd.rb index b75282d3c8..a040532eb6 100644 --- a/ext/tk/lib/tkextlib/tkDND/tkdnd.rb +++ b/ext/tk/lib/tkextlib/tkDND/tkdnd.rb @@ -15,6 +15,11 @@ TkPackage.require('tkdnd') module Tk module TkDND + PACKAGE_NAME = 'tkdnd'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('tkdnd') diff --git a/ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb b/ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb index 6d060a1175..818a659664 100644 --- a/ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb +++ b/ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb @@ -16,6 +16,11 @@ TkPackage.require('Tkhtml') module Tk class HTML_Widget < TkWindow + PACKAGE_NAME = 'Tkhtml'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('Tkhtml') diff --git a/ext/tk/lib/tkextlib/tkimg.rb b/ext/tk/lib/tkextlib/tkimg.rb index ffeafbb58e..c01359d3ef 100644 --- a/ext/tk/lib/tkextlib/tkimg.rb +++ b/ext/tk/lib/tkextlib/tkimg.rb @@ -17,6 +17,11 @@ TkPackage.require('Img') module Tk module Img + PACKAGE_NAME = 'Img'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('Img') diff --git a/ext/tk/lib/tkextlib/tkimg/bmp.rb b/ext/tk/lib/tkextlib/tkimg/bmp.rb index 581483f8f4..ea90181aa3 100644 --- a/ext/tk/lib/tkextlib/tkimg/bmp.rb +++ b/ext/tk/lib/tkextlib/tkimg/bmp.rb @@ -16,6 +16,11 @@ TkPackage.require('img::bmp') module Tk module Img module BMP + PACKAGE_NAME = 'img::bmp'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::bmp') diff --git a/ext/tk/lib/tkextlib/tkimg/gif.rb b/ext/tk/lib/tkextlib/tkimg/gif.rb index 6ef18f8e90..d542d47561 100644 --- a/ext/tk/lib/tkextlib/tkimg/gif.rb +++ b/ext/tk/lib/tkextlib/tkimg/gif.rb @@ -16,6 +16,11 @@ TkPackage.require('img::gif') module Tk module Img module GIF + PACKAGE_NAME = 'img::gif'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::gif') diff --git a/ext/tk/lib/tkextlib/tkimg/ico.rb b/ext/tk/lib/tkextlib/tkimg/ico.rb index 1e3cb5f497..e79bdf45e9 100644 --- a/ext/tk/lib/tkextlib/tkimg/ico.rb +++ b/ext/tk/lib/tkextlib/tkimg/ico.rb @@ -16,6 +16,11 @@ TkPackage.require('img::ico') module Tk module Img module ICO + PACKAGE_NAME = 'img::ico'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::ico') diff --git a/ext/tk/lib/tkextlib/tkimg/jpeg.rb b/ext/tk/lib/tkextlib/tkimg/jpeg.rb index 017c93ee0e..2126120161 100644 --- a/ext/tk/lib/tkextlib/tkimg/jpeg.rb +++ b/ext/tk/lib/tkextlib/tkimg/jpeg.rb @@ -16,6 +16,11 @@ TkPackage.require('img::jpeg') module Tk module Img module JPEG + PACKAGE_NAME = 'img::jpeg'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::jpeg') diff --git a/ext/tk/lib/tkextlib/tkimg/pcx.rb b/ext/tk/lib/tkextlib/tkimg/pcx.rb index e924d48869..6831f4d35b 100644 --- a/ext/tk/lib/tkextlib/tkimg/pcx.rb +++ b/ext/tk/lib/tkextlib/tkimg/pcx.rb @@ -16,6 +16,11 @@ TkPackage.require('img::pcx') module Tk module Img module PCX + PACKAGE_NAME = 'img::pcx'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::pcx') diff --git a/ext/tk/lib/tkextlib/tkimg/pixmap.rb b/ext/tk/lib/tkextlib/tkimg/pixmap.rb index f9aaa65a9b..707dcf9c74 100644 --- a/ext/tk/lib/tkextlib/tkimg/pixmap.rb +++ b/ext/tk/lib/tkextlib/tkimg/pixmap.rb @@ -16,6 +16,11 @@ TkPackage.require('img::pixmap') module Tk module Img module PIXMAP + PACKAGE_NAME = 'img::pixmap'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::pixmap') diff --git a/ext/tk/lib/tkextlib/tkimg/png.rb b/ext/tk/lib/tkextlib/tkimg/png.rb index b155836395..5c829f48d2 100644 --- a/ext/tk/lib/tkextlib/tkimg/png.rb +++ b/ext/tk/lib/tkextlib/tkimg/png.rb @@ -16,6 +16,11 @@ TkPackage.require('img::png') module Tk module Img module PNG + PACKAGE_NAME = 'img::png'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::png') diff --git a/ext/tk/lib/tkextlib/tkimg/ppm.rb b/ext/tk/lib/tkextlib/tkimg/ppm.rb index df56baee4a..eacfae467d 100644 --- a/ext/tk/lib/tkextlib/tkimg/ppm.rb +++ b/ext/tk/lib/tkextlib/tkimg/ppm.rb @@ -16,6 +16,11 @@ TkPackage.require('img::ppm') module Tk module Img module PPM + PACKAGE_NAME = 'img::ppm'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::ppm') diff --git a/ext/tk/lib/tkextlib/tkimg/ps.rb b/ext/tk/lib/tkextlib/tkimg/ps.rb index 3025066eb4..68e9178ac0 100644 --- a/ext/tk/lib/tkextlib/tkimg/ps.rb +++ b/ext/tk/lib/tkextlib/tkimg/ps.rb @@ -16,6 +16,11 @@ TkPackage.require('img::ps') module Tk module Img module PS + PACKAGE_NAME = 'img::ps'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::ps') diff --git a/ext/tk/lib/tkextlib/tkimg/sgi.rb b/ext/tk/lib/tkextlib/tkimg/sgi.rb index e505c87e8b..ec7038bf0e 100644 --- a/ext/tk/lib/tkextlib/tkimg/sgi.rb +++ b/ext/tk/lib/tkextlib/tkimg/sgi.rb @@ -16,6 +16,11 @@ TkPackage.require('img::sgi') module Tk module Img module SGI + PACKAGE_NAME = 'img::sgi'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::sgi') diff --git a/ext/tk/lib/tkextlib/tkimg/sun.rb b/ext/tk/lib/tkextlib/tkimg/sun.rb index 25bfea8fb7..651f946497 100644 --- a/ext/tk/lib/tkextlib/tkimg/sun.rb +++ b/ext/tk/lib/tkextlib/tkimg/sun.rb @@ -16,6 +16,11 @@ TkPackage.require('img::sun') module Tk module Img module SUN + PACKAGE_NAME = 'img::sun'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::sun') diff --git a/ext/tk/lib/tkextlib/tkimg/tga.rb b/ext/tk/lib/tkextlib/tkimg/tga.rb index e3f84c3714..1eae407c0a 100644 --- a/ext/tk/lib/tkextlib/tkimg/tga.rb +++ b/ext/tk/lib/tkextlib/tkimg/tga.rb @@ -16,6 +16,11 @@ TkPackage.require('img::tga') module Tk module Img module TGA + PACKAGE_NAME = 'img::tga'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::tga') diff --git a/ext/tk/lib/tkextlib/tkimg/tiff.rb b/ext/tk/lib/tkextlib/tkimg/tiff.rb index e7e12406ac..ed271c2600 100644 --- a/ext/tk/lib/tkextlib/tkimg/tiff.rb +++ b/ext/tk/lib/tkextlib/tkimg/tiff.rb @@ -16,6 +16,11 @@ TkPackage.require('img::tiff') module Tk module Img module TIFF + PACKAGE_NAME = 'img::tiff'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::tiff') diff --git a/ext/tk/lib/tkextlib/tkimg/window.rb b/ext/tk/lib/tkextlib/tkimg/window.rb index 00ed7d1b86..3b5906fab6 100644 --- a/ext/tk/lib/tkextlib/tkimg/window.rb +++ b/ext/tk/lib/tkextlib/tkimg/window.rb @@ -16,6 +16,11 @@ TkPackage.require('img::window') module Tk module Img module WINDOW + PACKAGE_NAME = 'img::window'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::window') diff --git a/ext/tk/lib/tkextlib/tkimg/xbm.rb b/ext/tk/lib/tkextlib/tkimg/xbm.rb index 08b1b9876b..f4bea030be 100644 --- a/ext/tk/lib/tkextlib/tkimg/xbm.rb +++ b/ext/tk/lib/tkextlib/tkimg/xbm.rb @@ -16,6 +16,11 @@ TkPackage.require('img::xbm') module Tk module Img module XBM + PACKAGE_NAME = 'img::xbm'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::xbm') diff --git a/ext/tk/lib/tkextlib/tkimg/xpm.rb b/ext/tk/lib/tkextlib/tkimg/xpm.rb index e29c1d554f..5119c8710b 100644 --- a/ext/tk/lib/tkextlib/tkimg/xpm.rb +++ b/ext/tk/lib/tkextlib/tkimg/xpm.rb @@ -16,6 +16,11 @@ TkPackage.require('img::xpm') module Tk module Img module XPM + PACKAGE_NAME = 'img::xpm'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('img::xpm') diff --git a/ext/tk/lib/tkextlib/tktable/tktable.rb b/ext/tk/lib/tkextlib/tktable/tktable.rb index dff44bf10d..8e9ba8b8c5 100644 --- a/ext/tk/lib/tkextlib/tktable/tktable.rb +++ b/ext/tk/lib/tkextlib/tktable/tktable.rb @@ -17,6 +17,11 @@ TkPackage.require('Tktable') module Tk class TkTable < TkWindow + PACKAGE_NAME = 'Tktable'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('Tktable') diff --git a/ext/tk/lib/tkextlib/tktrans/tktrans.rb b/ext/tk/lib/tkextlib/tktrans/tktrans.rb index 55ac03e563..665c57af0c 100644 --- a/ext/tk/lib/tkextlib/tktrans/tktrans.rb +++ b/ext/tk/lib/tkextlib/tktrans/tktrans.rb @@ -14,6 +14,11 @@ TkPackage.require('tktrans') rescue Tk.load_tcllibrary('tktrans') module Tk module TkTrans + PACKAGE_NAME = 'tktrans'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('tktrans') diff --git a/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb b/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb index c0475f5d5e..69244eae7c 100644 --- a/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb +++ b/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb @@ -19,6 +19,11 @@ module Tk class TreeCtrl < TkWindow BindTag_FileList = TkBindTag.new_by_name('TreeCtrlFileList') + PACKAGE_NAME = 'treectrl'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('treectrl') diff --git a/ext/tk/lib/tkextlib/vu.rb b/ext/tk/lib/tkextlib/vu.rb index c4ea1b86e6..d2234eb2a8 100644 --- a/ext/tk/lib/tkextlib/vu.rb +++ b/ext/tk/lib/tkextlib/vu.rb @@ -20,6 +20,11 @@ module Tk module Vu TkComm::TkExtlibAutoloadModule.unshift(self) + PACKAGE_NAME = 'vu'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('vu') diff --git a/ext/tk/lib/tkextlib/winico/winico.rb b/ext/tk/lib/tkextlib/winico/winico.rb index 1e2f1c0062..a9fef3ac7e 100644 --- a/ext/tk/lib/tkextlib/winico/winico.rb +++ b/ext/tk/lib/tkextlib/winico/winico.rb @@ -16,6 +16,11 @@ TkPackage.require('winico') module Tk class Winico < TkObject + PACKAGE_NAME = 'winico'.freeze + def self.package_name + PACKAGE_NAME + end + def self.package_version begin TkPackage.require('winico') -- cgit v1.2.3