summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tk.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-03 10:08:11 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-03 10:08:11 +0000
commit7c7dc83918e6ade36cff63d2c99e7a30dfaa7246 (patch)
tree346acb4bf191eac2410a87a160f176d8a689c406 /ext/tk/lib/tk.rb
parent9de1d5f921bed86634fcabaa8c6097f3523240da (diff)
downloadruby-7c7dc83918e6ade36cff63d2c99e7a30dfaa7246.tar.gz
ruby-7c7dc83918e6ade36cff63d2c99e7a30dfaa7246.tar.xz
ruby-7c7dc83918e6ade36cff63d2c99e7a30dfaa7246.zip
* ext/tk/tcltklib.c (ip_make_menu_embeddable): help to make a menu
widget embeddable (pack, grid, and so on) like as a general widget. However, an embeddable menu may require to be definied some event bindings for general use. * ext/tk/lib/tk/event.rb: [bug fix] Tk.callback_break and Tk.callback_continue don't work on MultiTkIp. * ext/tk/lib/multi-tk.rb: ditto. * ext/tk/lib/tk.rb: lack of Tk.callback_return. * ext/tk/lib/tk/menu.rb: improve creating clone menus. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk.rb')
-rw-r--r--ext/tk/lib/tk.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index c80dc45ea..4504d1d2e 100644
--- a/ext/tk/lib/tk.rb
+++ b/ext/tk/lib/tk.rb
@@ -1295,6 +1295,10 @@ module TkCore
fail TkCallbackContinue, "Tk callback returns 'continue' status"
end
+ def callback_return
+ fail TkCallbackReturn, "Tk callback returns 'return' status"
+ end
+
def TkCore.callback(*arg)
begin
if TkCore::INTERP.tk_cmd_tbl.kind_of?(Hash)
@@ -4559,7 +4563,7 @@ end
#Tk.freeze
module Tk
- RELEASE_DATE = '2006-06-27'.freeze
+ RELEASE_DATE = '2006-07-03'.freeze
autoload :AUTO_PATH, 'tk/variable'
autoload :TCL_PACKAGE_PATH, 'tk/variable'