summaryrefslogtreecommitdiffstats
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
commit1e9db0c222c8c16860f236414d13c3b591a584d3 (patch)
treec1e645c19fda50d0070b44645f02c2c96784fef3 /ext/tk/lib/tkextlib
parent5eda89a022da2dee6c601bb3735d4f8654f261b9 (diff)
downloadruby-1e9db0c222c8c16860f236414d13c3b591a584d3.tar.gz
ruby-1e9db0c222c8c16860f236414d13c3b591a584d3.tar.xz
ruby-1e9db0c222c8c16860f236414d13c3b591a584d3.zip
* 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: http://svn.ruby-lang.org/repos/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 da78ca3fb..dff44bf10 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