summaryrefslogtreecommitdiff
path: root/ext/tk
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk')
-rw-r--r--ext/tk/lib/tk.rb2
-rw-r--r--ext/tk/lib/tk/dialog.rb13
2 files changed, 8 insertions, 7 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index c24f209703..5bde46007b 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 d468c6e8b1..180da101e3 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