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 | e60615406d7981e80f378761d392e5aa998a589a (patch) | |
| tree | 6e4e325de77c6f9007b5189f19696bf2d7b7288a /ext/tk/lib | |
| parent | 47fa146ea04f398ef83e951a7b29c3100992c2a1 (diff) | |
| download | ruby-e60615406d7981e80f378761d392e5aa998a589a.tar.gz ruby-e60615406d7981e80f378761d392e5aa998a589a.tar.xz ruby-e60615406d7981e80f378761d392e5aa998a589a.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/trunk@9165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib')
| -rw-r--r-- | ext/tk/lib/tk.rb | 2 | ||||
| -rw-r--r-- | ext/tk/lib/tk/dialog.rb | 13 |
2 files changed, 8 insertions, 7 deletions
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 |
