summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkextlib
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-04 01:37:19 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-04 01:37:19 +0000
commitcd7d0af1c1b0f5243266aa9fc4f11be1d4cbebd4 (patch)
treec1e645c19fda50d0070b44645f02c2c96784fef3 /ext/tk/lib/tkextlib
parentdf9cf4fc6785ce97738bde56102de4cfef6edac0 (diff)
* ext/tk/lib/tk/dialog.rb: fixed typo.
* ext/tk/lib/tkextlib/tktable/tktable.rb: added Tk::TkTable#selection_present. * ext/tk/sample/tkextlib/vu/dial_demo.rb: renamed as well as vu_demo.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkextlib')
-rw-r--r--ext/tk/lib/tkextlib/tktable/tktable.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/tk/lib/tkextlib/tktable/tktable.rb b/ext/tk/lib/tkextlib/tktable/tktable.rb
index da78ca3fbb..dff44bf10d 100644
--- a/ext/tk/lib/tkextlib/tktable/tktable.rb
+++ b/ext/tk/lib/tkextlib/tktable/tktable.rb
@@ -547,6 +547,9 @@ class Tk::TkTable
def selection_include?(idx)
bool(tk_send('selection', 'includes', tagid(idx)))
end
+ def selection_present
+ bool(tk_send('selection', 'present'))
+ end
def selection_set(first, last=None)
tk_send('selection', 'set', tagid(first), tagid(last))
self