* ext/tk/lib/tk/timer.rb: fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8f1f1183f5
commit
357ce6cfe4
@ -1,3 +1,7 @@
|
|||||||
|
Sun May 8 23:17:47 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
|
* ext/tk/lib/tk/timer.rb: fix typo.
|
||||||
|
|
||||||
Sun May 8 21:00:50 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
Sun May 8 21:00:50 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||||
|
|
||||||
* hash.c (Init_Hash): remove custom "hash" and "eql?".
|
* hash.c (Init_Hash): remove custom "hash" and "eql?".
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2005-05-08 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
|
* lib/tkextlib/vu/pie.rb: fix typo
|
||||||
|
|
||||||
2005-04-10 ocean <ocean@ruby-lang.org>
|
2005-04-10 ocean <ocean@ruby-lang.org>
|
||||||
|
|
||||||
* sample/tkextlib/treectrl/mailwasher.rb: fixed typo. [ruby-dev:26008]
|
* sample/tkextlib/treectrl/mailwasher.rb: fixed typo. [ruby-dev:26008]
|
||||||
|
@ -4024,7 +4024,7 @@ end
|
|||||||
#Tk.freeze
|
#Tk.freeze
|
||||||
|
|
||||||
module Tk
|
module Tk
|
||||||
RELEASE_DATE = '2005-04-09'.freeze
|
RELEASE_DATE = '2005-05-08'.freeze
|
||||||
|
|
||||||
autoload :AUTO_PATH, 'tk/variable'
|
autoload :AUTO_PATH, 'tk/variable'
|
||||||
autoload :TCL_PACKAGE_PATH, 'tk/variable'
|
autoload :TCL_PACKAGE_PATH, 'tk/variable'
|
||||||
|
@ -623,7 +623,7 @@ class TkcItem<TkObject
|
|||||||
|
|
||||||
def initialize(parent, *args)
|
def initialize(parent, *args)
|
||||||
#unless parent.kind_of?(TkCanvas)
|
#unless parent.kind_of?(TkCanvas)
|
||||||
# fail ArguemntError, "expect TkCanvas for 1st argument"
|
# fail ArgumentError, "expect TkCanvas for 1st argument"
|
||||||
#end
|
#end
|
||||||
@parent = @c = parent
|
@parent = @c = parent
|
||||||
@path = parent.path
|
@path = parent.path
|
||||||
|
@ -210,7 +210,7 @@ class TkcTag<TkObject
|
|||||||
|
|
||||||
def initialize(parent, mode=nil, *args)
|
def initialize(parent, mode=nil, *args)
|
||||||
#unless parent.kind_of?(TkCanvas)
|
#unless parent.kind_of?(TkCanvas)
|
||||||
# fail ArguemntError, "expect TkCanvas for 1st argument"
|
# fail ArgumentError, "expect TkCanvas for 1st argument"
|
||||||
#end
|
#end
|
||||||
@c = parent
|
@c = parent
|
||||||
@cpath = parent.path
|
@cpath = parent.path
|
||||||
@ -297,7 +297,7 @@ class TkcTagString<TkcTag
|
|||||||
|
|
||||||
def initialize(parent, name, mode=nil, *args)
|
def initialize(parent, name, mode=nil, *args)
|
||||||
#unless parent.kind_of?(TkCanvas)
|
#unless parent.kind_of?(TkCanvas)
|
||||||
# fail ArguemntError, "expect TkCanvas for 1st argument"
|
# fail ArgumentError, "expect TkCanvas for 1st argument"
|
||||||
#end
|
#end
|
||||||
@c = parent
|
@c = parent
|
||||||
@cpath = parent.path
|
@cpath = parent.path
|
||||||
@ -314,7 +314,7 @@ TkcNamedTag = TkcTagString
|
|||||||
class TkcTagAll<TkcTag
|
class TkcTagAll<TkcTag
|
||||||
def initialize(parent)
|
def initialize(parent)
|
||||||
#unless parent.kind_of?(TkCanvas)
|
#unless parent.kind_of?(TkCanvas)
|
||||||
# fail ArguemntError, "expect TkCanvas for 1st argument"
|
# fail ArgumentError, "expect TkCanvas for 1st argument"
|
||||||
#end
|
#end
|
||||||
@c = parent
|
@c = parent
|
||||||
@cpath = parent.path
|
@cpath = parent.path
|
||||||
@ -327,7 +327,7 @@ end
|
|||||||
class TkcTagCurrent<TkcTag
|
class TkcTagCurrent<TkcTag
|
||||||
def initialize(parent)
|
def initialize(parent)
|
||||||
#unless parent.kind_of?(TkCanvas)
|
#unless parent.kind_of?(TkCanvas)
|
||||||
# fail ArguemntError, "expect TkCanvas for 1st argument"
|
# fail ArgumentError, "expect TkCanvas for 1st argument"
|
||||||
#end
|
#end
|
||||||
@c = parent
|
@c = parent
|
||||||
@cpath = parent.path
|
@cpath = parent.path
|
||||||
@ -342,7 +342,7 @@ class TkcGroup<TkcTag
|
|||||||
#def create_self(parent, *args)
|
#def create_self(parent, *args)
|
||||||
def initialize(parent, *args)
|
def initialize(parent, *args)
|
||||||
#unless parent.kind_of?(TkCanvas)
|
#unless parent.kind_of?(TkCanvas)
|
||||||
# fail ArguemntError, "expect TkCanvas for 1st argument"
|
# fail ArgumentError, "expect TkCanvas for 1st argument"
|
||||||
#end
|
#end
|
||||||
@c = parent
|
@c = parent
|
||||||
@cpath = parent.path
|
@cpath = parent.path
|
||||||
|
@ -9,7 +9,7 @@ class TkTextImage<TkObject
|
|||||||
|
|
||||||
def initialize(parent, index, keys)
|
def initialize(parent, index, keys)
|
||||||
#unless parent.kind_of?(TkText)
|
#unless parent.kind_of?(TkText)
|
||||||
# fail ArguemntError, "expect TkText for 1st argument"
|
# fail ArgumentError, "expect TkText for 1st argument"
|
||||||
#end
|
#end
|
||||||
@t = parent
|
@t = parent
|
||||||
if index == 'end' || index == :end
|
if index == 'end' || index == :end
|
||||||
|
@ -20,7 +20,7 @@ class TkTextMark<TkObject
|
|||||||
|
|
||||||
def initialize(parent, index)
|
def initialize(parent, index)
|
||||||
#unless parent.kind_of?(TkText)
|
#unless parent.kind_of?(TkText)
|
||||||
# fail ArguemntError, "expect TkText for 1st argument"
|
# fail ArgumentError, "expect TkText for 1st argument"
|
||||||
#end
|
#end
|
||||||
@parent = @t = parent
|
@parent = @t = parent
|
||||||
@tpath = parent.path
|
@tpath = parent.path
|
||||||
@ -132,7 +132,7 @@ class TkTextNamedMark<TkTextMark
|
|||||||
|
|
||||||
def initialize(parent, name, index=nil)
|
def initialize(parent, name, index=nil)
|
||||||
#unless parent.kind_of?(TkText)
|
#unless parent.kind_of?(TkText)
|
||||||
# fail ArguemntError, "expect TkText for 1st argument"
|
# fail ArgumentError, "expect TkText for 1st argument"
|
||||||
#end
|
#end
|
||||||
@parent = @t = parent
|
@parent = @t = parent
|
||||||
@tpath = parent.path
|
@tpath = parent.path
|
||||||
|
@ -22,7 +22,7 @@ class TkTextTag<TkObject
|
|||||||
|
|
||||||
def initialize(parent, *args)
|
def initialize(parent, *args)
|
||||||
#unless parent.kind_of?(TkText)
|
#unless parent.kind_of?(TkText)
|
||||||
# fail ArguemntError, "expect TkText for 1st argument"
|
# fail ArgumentError, "expect TkText for 1st argument"
|
||||||
#end
|
#end
|
||||||
@parent = @t = parent
|
@parent = @t = parent
|
||||||
@tpath = parent.path
|
@tpath = parent.path
|
||||||
@ -247,7 +247,7 @@ class TkTextNamedTag<TkTextTag
|
|||||||
|
|
||||||
def initialize(parent, name, *args)
|
def initialize(parent, name, *args)
|
||||||
#unless parent.kind_of?(TkText)
|
#unless parent.kind_of?(TkText)
|
||||||
# fail ArguemntError, "expect TkText for 1st argument"
|
# fail ArgumentError, "expect TkText for 1st argument"
|
||||||
#end
|
#end
|
||||||
@parent = @t = parent
|
@parent = @t = parent
|
||||||
@tpath = parent.path
|
@tpath = parent.path
|
||||||
|
@ -9,7 +9,7 @@ class TkTextWindow<TkObject
|
|||||||
|
|
||||||
def initialize(parent, index, keys = {})
|
def initialize(parent, index, keys = {})
|
||||||
#unless parent.kind_of?(TkText)
|
#unless parent.kind_of?(TkText)
|
||||||
# fail ArguemntError, "expect TkText for 1st argument"
|
# fail ArgumentError, "expect TkText for 1st argument"
|
||||||
#end
|
#end
|
||||||
@t = parent
|
@t = parent
|
||||||
if index == 'end' || index == :end
|
if index == 'end' || index == :end
|
||||||
|
@ -249,7 +249,7 @@ class TkTimer
|
|||||||
# && !interval.kind_of?(Integer) && !interval.kind_of?(Proc)
|
# && !interval.kind_of?(Integer) && !interval.kind_of?(Proc)
|
||||||
if interval != 'idle' && interval != :idle \
|
if interval != 'idle' && interval != :idle \
|
||||||
&& !interval.kind_of?(Integer) && !TkComm._callback_entry?(interval)
|
&& !interval.kind_of?(Integer) && !TkComm._callback_entry?(interval)
|
||||||
fail ArguemntError, "expect Integer or Proc"
|
fail ArgumentError, "expect Integer or Proc"
|
||||||
end
|
end
|
||||||
@sleep_time = interval
|
@sleep_time = interval
|
||||||
end
|
end
|
||||||
@ -259,7 +259,7 @@ class TkTimer
|
|||||||
# && !interval.kind_of?(Integer) && !interval.kind_of?(Proc)
|
# && !interval.kind_of?(Integer) && !interval.kind_of?(Proc)
|
||||||
if interval != 'idle' && interval != :idle \
|
if interval != 'idle' && interval != :idle \
|
||||||
&& !interval.kind_of?(Integer) && !TkComm._callback_entry?(interval)
|
&& !interval.kind_of?(Integer) && !TkComm._callback_entry?(interval)
|
||||||
fail ArguemntError, "expect Integer or Proc for 1st argument"
|
fail ArgumentError, "expect Integer or Proc for 1st argument"
|
||||||
end
|
end
|
||||||
@sleep_time = interval
|
@sleep_time = interval
|
||||||
|
|
||||||
@ -283,7 +283,7 @@ class TkTimer
|
|||||||
@loop_exec = 0
|
@loop_exec = 0
|
||||||
else
|
else
|
||||||
if not loop_exec.kind_of?(Integer)
|
if not loop_exec.kind_of?(Integer)
|
||||||
fail ArguemntError, "expect Integer for 2nd argument"
|
fail ArgumentError, "expect Integer for 2nd argument"
|
||||||
end
|
end
|
||||||
@loop_exec = loop_exec
|
@loop_exec = loop_exec
|
||||||
end
|
end
|
||||||
@ -334,7 +334,7 @@ class TkTimer
|
|||||||
sleep = @init_sleep unless sleep
|
sleep = @init_sleep unless sleep
|
||||||
|
|
||||||
if sleep != 'idle' && sleep != :idle && !sleep.kind_of?(Integer)
|
if sleep != 'idle' && sleep != :idle && !sleep.kind_of?(Integer)
|
||||||
fail ArguemntError, "expect Integer or 'idle' for 1st argument"
|
fail ArgumentError, "expect Integer or 'idle' for 1st argument"
|
||||||
end
|
end
|
||||||
|
|
||||||
@init_sleep = sleep
|
@init_sleep = sleep
|
||||||
@ -364,7 +364,7 @@ class TkTimer
|
|||||||
if argc > 0
|
if argc > 0
|
||||||
sleep = init_args.shift
|
sleep = init_args.shift
|
||||||
if sleep != 'idle' && sleep != :idle && !sleep.kind_of?(Integer)
|
if sleep != 'idle' && sleep != :idle && !sleep.kind_of?(Integer)
|
||||||
fail ArguemntError, "expect Integer or 'idle' for 1st argument"
|
fail ArgumentError, "expect Integer or 'idle' for 1st argument"
|
||||||
end
|
end
|
||||||
@init_sleep = sleep
|
@init_sleep = sleep
|
||||||
end
|
end
|
||||||
@ -436,7 +436,7 @@ class TkTimer
|
|||||||
fail RuntimeError, "no procedure to continue" unless cmd
|
fail RuntimeError, "no procedure to continue" unless cmd
|
||||||
if wait
|
if wait
|
||||||
unless wait.kind_of?(Integer)
|
unless wait.kind_of?(Integer)
|
||||||
fail ArguemntError, "expect Integer for 1st argument"
|
fail ArgumentError, "expect Integer for 1st argument"
|
||||||
end
|
end
|
||||||
sleep = wait
|
sleep = wait
|
||||||
end
|
end
|
||||||
|
@ -127,7 +127,7 @@ class Tk::Vu::PieSlice
|
|||||||
|
|
||||||
def initialize(parent, *args)
|
def initialize(parent, *args)
|
||||||
unless parent.kind_of?(Tk::Vu::Pie)
|
unless parent.kind_of?(Tk::Vu::Pie)
|
||||||
fail ArguemntError, "expect a Tk::Vu::Pie instance for 1st argument"
|
fail ArgumentError, "expect a Tk::Vu::Pie instance for 1st argument"
|
||||||
end
|
end
|
||||||
@parent = @pie = parent
|
@parent = @pie = parent
|
||||||
@ppath = parent.path
|
@ppath = parent.path
|
||||||
@ -218,7 +218,7 @@ class Tk::Vu::NamedPieSlice
|
|||||||
|
|
||||||
def initialize(parent, name, *args)
|
def initialize(parent, name, *args)
|
||||||
unless parent.kind_of?(Tk::Vu::Pie)
|
unless parent.kind_of?(Tk::Vu::Pie)
|
||||||
fail ArguemntError, "expect a Tk::Vu::Pie instance for 1st argument"
|
fail ArgumentError, "expect a Tk::Vu::Pie instance for 1st argument"
|
||||||
end
|
end
|
||||||
@parent = @pie = parent
|
@parent = @pie = parent
|
||||||
@ppath = parent.path
|
@ppath = parent.path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user