summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkextlib
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-04 01:44:12 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-04 01:44:12 +0000
commit458d524adb02f2adfd835f9ce748248fd71cdd78 (patch)
treea0ce5e93d1f863c7dc6cc8b1fa6818f5d2a6dc54 /ext/tk/lib/tkextlib
parent64cc52ed57b894d80a76d754af6d49b53e439a07 (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/branches/ruby_1_8@8249 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