summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tkentry.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-27 07:10:58 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-03-27 07:10:58 +0000
commit6731d42dc563d8be7e332c7212d1091308d7f176 (patch)
tree48db04333ba63f89121ba05c2bcdc3e765af5343 /ext/tk/lib/tkentry.rb
parent7c5000bc2cdb78d99a02fab1496ebdef31a0e9bd (diff)
downloadruby-6731d42dc563d8be7e332c7212d1091308d7f176.tar.gz
ruby-6731d42dc563d8be7e332c7212d1091308d7f176.tar.xz
ruby-6731d42dc563d8be7e332c7212d1091308d7f176.zip
* eval.c (rb_mod_define_method): should have clear method cache.
* eval.c (rb_mod_define_method): should have raised exception for type error. * ruby.h: changed "extern INLINE" to "static inline". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkentry.rb')
-rw-r--r--ext/tk/lib/tkentry.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/tk/lib/tkentry.rb b/ext/tk/lib/tkentry.rb
index 6b25be376..7af3f2674 100644
--- a/ext/tk/lib/tkentry.rb
+++ b/ext/tk/lib/tkentry.rb
@@ -136,7 +136,7 @@ class TkEntry<TkLabel
tk_send 'selection', 'from', index
end
def selection_present()
- tk_send('selection', 'present') == 1
+ bool(tk_send('selection', 'present'))
end
def selection_range(s, e)
tk_send 'selection', 'range', s, e