aboutsummaryrefslogtreecommitdiffstats
path: root/ext
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
parentdf9cf4fc6785ce97738bde56102de4cfef6edac0 (diff)
downloadruby-cd7d0af1c1b0f5243266aa9fc4f11be1d4cbebd4.tar.gz
* 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')
-rw-r--r--ext/tk/ChangeLog.tkextlib14
-rw-r--r--ext/tk/lib/tk/dialog.rb2
-rw-r--r--ext/tk/lib/tkextlib/tktable/tktable.rb3
-rw-r--r--ext/tk/sample/tkextlib/vu/dial_demo.rb (renamed from ext/tk/sample/tkextlib/vu/dial.rb)0
4 files changed, 15 insertions, 4 deletions
diff --git a/ext/tk/ChangeLog.tkextlib b/ext/tk/ChangeLog.tkextlib
index dc9799660c..8638975e8d 100644
--- a/ext/tk/ChangeLog.tkextlib
+++ b/ext/tk/ChangeLog.tkextlib
@@ -1,3 +1,7 @@
+2005-04-04 ocean <ocean@ruby-lang.org>
+
+ * lib/tkextlib/tktable/tktable.rb: added Tk::TkTable#selection_present.
+
2005-04-02 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* lib/tkextlib/treectrl/tktreectrl.rb: support TreeCtrl's cvs head.
@@ -26,12 +30,12 @@
2005-03-31 ocean <ocean@ruby-lang.org>
- * ext/tk/sample/tkextlib/treectrl/demo.rb: should use Hash#index.
+ * sample/tkextlib/treectrl/demo.rb: should use Hash#index.
- * ext/tk/sample/tkextlib/treectrl/demo.rb: TkImage was not
+ * sample/tkextlib/treectrl/demo.rb: TkImage was not
cached properly.
- * ext/tk/sample/tkextlib/treectrl/random.rb: fixed typo.
+ * sample/tkextlib/treectrl/random.rb: fixed typo.
2005-03-31 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
@@ -87,6 +91,10 @@
* sample/tkextlib/blt/pareto.rb: ditto.
+2005-03-28 ocean <ocean@ruby-lang.org>
+
+ * lib/tkextlib/iwidgets/notebook.rb: fixed typo.
+
2005-03-26 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* lib/tkextlib/blt.rb: add commands for zooming.
diff --git a/ext/tk/lib/tk/dialog.rb b/ext/tk/lib/tk/dialog.rb
index 212226b4d4..d468c6e8b1 100644
--- a/ext/tk/lib/tk/dialog.rb
+++ b/ext/tk/lib/tk/dialog.rb
@@ -51,7 +51,7 @@ class TkDialogObj < TkWindow
}
end
# @config = 'after idle {' + @config + '};' if @config != ""
- @config = array2tk_list['after', 'idle', @config] << ';' if @config != ""
+ @config = array2tk_list(['after', 'idle', @config]) << ';' if @config != ""
end
private :_set_button_config
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
diff --git a/ext/tk/sample/tkextlib/vu/dial.rb b/ext/tk/sample/tkextlib/vu/dial_demo.rb
index 09bd3e9186..09bd3e9186 100644
--- a/ext/tk/sample/tkextlib/vu/dial.rb
+++ b/ext/tk/sample/tkextlib/vu/dial_demo.rb