diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-28 17:27:41 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-28 17:27:41 +0000 |
commit | 3cb57fb1c3c2b25bd94660c099f52489a1564354 (patch) | |
tree | 08409cd67ee21c92a9931071ebe8b172e19a008f /ext/tk/lib/tk/text.rb | |
parent | 3e1c54defd58609ae284a78b3bc5501105d332e6 (diff) |
* ext/tk/lib/tk.rb: forgot to update RELEASE_DATE
* ext/tk/lib/tk.rb, ext/tk/lib/tk/text.rb,
ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb: remove adhoc check
of Ruby's features (use existence of some classes instead of
comparing with RUBY_VERSION)
* ext/tk/lib/tk/root.rb, ext/tk/lib/tk/autoload.rb: make TkRoot
(Tk::Root) unswitchable
* ext/tk/lib/multi-tk.rb: partial bug fix (still not work!!)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk/text.rb')
-rw-r--r-- | ext/tk/lib/tk/text.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tk/text.rb b/ext/tk/lib/tk/text.rb index 8aad74ef34..2ed1d30cf5 100644 --- a/ext/tk/lib/tk/text.rb +++ b/ext/tk/lib/tk/text.rb @@ -1182,7 +1182,7 @@ class Tk::Text<TkTextWin end def _ktext_length(txt) - if RUBY_VERSION < '1.9.0' ### !!!!!!!!!!!!! + if TkCore::WITH_ENCODING ### Ruby 1.9 !!!!!!!!!!!!! return txt.length end ########################### @@ -1541,7 +1541,7 @@ class Tk::Text::Peer < Tk::Text # Tk8.5 feature def initialize(text, parent=nil, keys={}) unless text.kind_of?(Tk::Text) - fail ArgumentError, "TkText is expected for 1st argument" + fail ArgumentError, "Tk::Text is expected for 1st argument" end @src_text = text super(parent, keys) |