summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk.rb
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-13 03:46:35 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-13 03:46:35 +0000
commitdbc2cc8c851c5b70352a4c09d6b0e30c1498a93b (patch)
tree97e8af8f02a251e9c673af541e0492ca787126a4 /ext/tk/lib/tk.rb
parent7a8405300c6b117a9a7fe6200de90e5cca48a759 (diff)
* ext/tcltklib/tcltklib.c: TclTkLib.do_one_event doesn't work.
* ext/tk/lib/tk.rb: Tk.thread_update is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk.rb')
-rw-r--r--ext/tk/lib/tk.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index 4267b42a3e..5bd6b3da84 100644
--- a/ext/tk/lib/tk.rb
+++ b/ext/tk/lib/tk.rb
@@ -1940,8 +1940,10 @@ module Tk
self
end
-=begin
- # See tcltklib.c for the reason of why the following methods are disabled.
+ # NOTE::
+ # If no eventloop-thread is running, "thread_update" method is same
+ # to "update" method. Else, "thread_update" method waits to complete
+ # idletask operation on the eventloop-thread.
def Tk.thread_update(idle=nil)
if idle
tk_call_without_enc('thread_update', 'idletasks')
@@ -1952,7 +1954,6 @@ module Tk
def Tk.thread_update_idletasks
thread_update(true)
end
-=end
def Tk.lower_window(win, below=None)
tk_call('lower', _epath(win), _epath(below))
@@ -4194,7 +4195,7 @@ end
#Tk.freeze
module Tk
- RELEASE_DATE = '2005-07-05'.freeze
+ RELEASE_DATE = '2005-07-13'.freeze
autoload :AUTO_PATH, 'tk/variable'
autoload :TCL_PACKAGE_PATH, 'tk/variable'