From e24f4334ea0cea9ca3fb1f6f072a4fd6addc9183 Mon Sep 17 00:00:00 2001 From: nagai Date: Wed, 15 Jun 2005 09:30:54 +0000 Subject: * ext/tk/tk.rb: support "tk inactive" sub-command. [for Tcl/Tk8.5a3] * ext/tk/tk/namespace.rb: support "namespace path" sub-command and 'namespace ensemble' sub-command. [for Tcl/Tk8.5a3] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/lib/tk.rb | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'ext/tk/lib/tk.rb') diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index 6a66a2eb2..8ac03f1a9 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -1351,6 +1351,19 @@ module TkCore end end + def inactive + Integer(tk_call_without_enc('tk', 'inactive')) + end + def inactive_displayof(win) + Integer(tk_call_without_enc('tk', 'inactive', '-displayof', win)) + end + def reset_inactive + tk_call_without_enc('tk', 'inactive', 'reset') + end + def reset_inactive_displayof(win) + tk_call_without_enc('tk', 'inactive', '-displayof', win, 'reset') + end + def appname(name=None) tk_call('tk', 'appname', name) end @@ -4130,7 +4143,7 @@ end #Tk.freeze module Tk - RELEASE_DATE = '2005-06-03'.freeze + RELEASE_DATE = '2005-06-15'.freeze autoload :AUTO_PATH, 'tk/variable' autoload :TCL_PACKAGE_PATH, 'tk/variable' -- cgit