diff options
| author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-04 01:44:12 +0000 |
|---|---|---|
| committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-04-04 01:44:12 +0000 |
| commit | 12b724e8867874b943ceefb2e7e4dadefdc67964 (patch) | |
| tree | a0ce5e93d1f863c7dc6cc8b1fa6818f5d2a6dc54 /ext/tk/lib/tkextlib | |
| parent | cf4d5e0ec97d78cd1c4703bb9b0e037618dc2472 (diff) | |
| download | ruby-12b724e8867874b943ceefb2e7e4dadefdc67964.tar.gz ruby-12b724e8867874b943ceefb2e7e4dadefdc67964.tar.xz ruby-12b724e8867874b943ceefb2e7e4dadefdc67964.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/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.rb | 3 |
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 |
