diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-15 02:41:17 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-15 02:41:17 +0000 |
| commit | df8093fa9acd040135bf62f878fda06d5a7cd8a6 (patch) | |
| tree | 772b2603aedb6d917c89f529a4b0b6d4580e4540 | |
| parent | 2070cb4af98daeb123df8ec74ae8c616245b3d0c (diff) | |
| download | ruby-df8093fa9acd040135bf62f878fda06d5a7cd8a6.tar.gz ruby-df8093fa9acd040135bf62f878fda06d5a7cd8a6.tar.xz ruby-df8093fa9acd040135bf62f878fda06d5a7cd8a6.zip | |
* ext/tk/lib/tk/dialog.rb: If a dialog does not show up yet,
TkDialogObj#name raises an exception. [ruby-talk:156109]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | ext/tk/lib/tk.rb | 2 | ||||
| -rw-r--r-- | ext/tk/lib/tk/dialog.rb | 13 |
3 files changed, 13 insertions, 7 deletions
@@ -1,3 +1,8 @@ +Thu Sep 15 11:39:18 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> + + * ext/tk/lib/tk/dialog.rb: If a dialog does not show up yet, + TkDialogObj#name raises an exception. [ruby-talk:156109] + Thu Sep 15 01:39:19 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp> * lib/rinda/tuplespace.rb (Rinda::TemplateEntry::initialize): pull diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index c24f20970..5bde46007 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -4437,7 +4437,7 @@ end #Tk.freeze module Tk - RELEASE_DATE = '2005-09-01'.freeze + RELEASE_DATE = '2005-09-15'.freeze autoload :AUTO_PATH, 'tk/variable' autoload :TCL_PACKAGE_PATH, 'tk/variable' diff --git a/ext/tk/lib/tk/dialog.rb b/ext/tk/lib/tk/dialog.rb index d468c6e8b..180da101e 100644 --- a/ext/tk/lib/tk/dialog.rb +++ b/ext/tk/lib/tk/dialog.rb @@ -199,13 +199,14 @@ class TkDialogObj < TkWindow end def name - @buttons[@val] + (@val)? @buttons[@val]: nil end - ###################################################### - # # - # these methods must be overridden for each dialog # - # # - ###################################################### + + ############################################################ + # # + # following methods should be overridden for each dialog # + # # + ############################################################ private def title |
