mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
11 changed files with 29 additions and 21 deletions
|
@ -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>
|
||||
|
||||
* 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>
|
||||
|
||||
* sample/tkextlib/treectrl/mailwasher.rb: fixed typo. [ruby-dev:26008]
|
||||
|
|
|
@ -4024,7 +4024,7 @@ end
|
|||
#Tk.freeze
|
||||
|
||||
module Tk
|
||||
RELEASE_DATE = '2005-04-09'.freeze
|
||||
RELEASE_DATE = '2005-05-08'.freeze
|
||||
|
||||
autoload :AUTO_PATH, 'tk/variable'
|
||||
autoload :TCL_PACKAGE_PATH, 'tk/variable'
|
||||
|
|
|
@ -623,7 +623,7 @@ class TkcItem<TkObject
|
|||
|
||||
def initialize(parent, *args)
|
||||
#unless parent.kind_of?(TkCanvas)
|
||||
# fail ArguemntError, "expect TkCanvas for 1st argument"
|
||||
# fail ArgumentError, "expect TkCanvas for 1st argument"
|
||||
#end
|
||||
@parent = @c = parent
|
||||
@path = parent.path
|
||||
|
|
|
@ -210,7 +210,7 @@ class TkcTag<TkObject
|
|||
|
||||
def initialize(parent, mode=nil, *args)
|
||||
#unless parent.kind_of?(TkCanvas)
|
||||
# fail ArguemntError, "expect TkCanvas for 1st argument"
|
||||
# fail ArgumentError, "expect TkCanvas for 1st argument"
|
||||
#end
|
||||
@c = parent
|
||||
@cpath = parent.path
|
||||
|
@ -297,7 +297,7 @@ class TkcTagString<TkcTag
|
|||
|
||||
def initialize(parent, name, mode=nil, *args)
|
||||
#unless parent.kind_of?(TkCanvas)
|
||||
# fail ArguemntError, "expect TkCanvas for 1st argument"
|
||||
# fail ArgumentError, "expect TkCanvas for 1st argument"
|
||||
#end
|
||||
@c = parent
|
||||
@cpath = parent.path
|
||||
|
@ -314,7 +314,7 @@ TkcNamedTag = TkcTagString
|
|||
class TkcTagAll<TkcTag
|
||||
def initialize(parent)
|
||||
#unless parent.kind_of?(TkCanvas)
|
||||
# fail ArguemntError, "expect TkCanvas for 1st argument"
|
||||
# fail ArgumentError, "expect TkCanvas for 1st argument"
|
||||
#end
|
||||
@c = parent
|
||||
@cpath = parent.path
|
||||
|
@ -327,7 +327,7 @@ end
|
|||
class TkcTagCurrent<TkcTag
|
||||
def initialize(parent)
|
||||
#unless parent.kind_of?(TkCanvas)
|
||||
# fail ArguemntError, "expect TkCanvas for 1st argument"
|
||||
# fail ArgumentError, "expect TkCanvas for 1st argument"
|
||||
#end
|
||||
@c = parent
|
||||
@cpath = parent.path
|
||||
|
@ -342,7 +342,7 @@ class TkcGroup<TkcTag
|
|||
#def create_self(parent, *args)
|
||||
def initialize(parent, *args)
|
||||
#unless parent.kind_of?(TkCanvas)
|
||||
# fail ArguemntError, "expect TkCanvas for 1st argument"
|
||||
# fail ArgumentError, "expect TkCanvas for 1st argument"
|
||||
#end
|
||||
@c = parent
|
||||
@cpath = parent.path
|
||||
|
|
|
@ -9,7 +9,7 @@ class TkTextImage<TkObject
|
|||
|
||||
def initialize(parent, index, keys)
|
||||
#unless parent.kind_of?(TkText)
|
||||
# fail ArguemntError, "expect TkText for 1st argument"
|
||||
# fail ArgumentError, "expect TkText for 1st argument"
|
||||
#end
|
||||
@t = parent
|
||||
if index == 'end' || index == :end
|
||||
|
|
|
@ -20,7 +20,7 @@ class TkTextMark<TkObject
|
|||
|
||||
def initialize(parent, index)
|
||||
#unless parent.kind_of?(TkText)
|
||||
# fail ArguemntError, "expect TkText for 1st argument"
|
||||
# fail ArgumentError, "expect TkText for 1st argument"
|
||||
#end
|
||||
@parent = @t = parent
|
||||
@tpath = parent.path
|
||||
|
@ -132,7 +132,7 @@ class TkTextNamedMark<TkTextMark
|
|||
|
||||
def initialize(parent, name, index=nil)
|
||||
#unless parent.kind_of?(TkText)
|
||||
# fail ArguemntError, "expect TkText for 1st argument"
|
||||
# fail ArgumentError, "expect TkText for 1st argument"
|
||||
#end
|
||||
@parent = @t = parent
|
||||
@tpath = parent.path
|
||||
|
|
|
@ -22,7 +22,7 @@ class TkTextTag<TkObject
|
|||
|
||||
def initialize(parent, *args)
|
||||
#unless parent.kind_of?(TkText)
|
||||
# fail ArguemntError, "expect TkText for 1st argument"
|
||||
# fail ArgumentError, "expect TkText for 1st argument"
|
||||
#end
|
||||
@parent = @t = parent
|
||||
@tpath = parent.path
|
||||
|
@ -247,7 +247,7 @@ class TkTextNamedTag<TkTextTag
|
|||
|
||||
def initialize(parent, name, *args)
|
||||
#unless parent.kind_of?(TkText)
|
||||
# fail ArguemntError, "expect TkText for 1st argument"
|
||||
# fail ArgumentError, "expect TkText for 1st argument"
|
||||
#end
|
||||
@parent = @t = parent
|
||||
@tpath = parent.path
|
||||
|
|
|
@ -9,7 +9,7 @@ class TkTextWindow<TkObject
|
|||
|
||||
def initialize(parent, index, keys = {})
|
||||
#unless parent.kind_of?(TkText)
|
||||
# fail ArguemntError, "expect TkText for 1st argument"
|
||||
# fail ArgumentError, "expect TkText for 1st argument"
|
||||
#end
|
||||
@t = parent
|
||||
if index == 'end' || index == :end
|
||||
|
|
|
@ -249,7 +249,7 @@ class TkTimer
|
|||
# && !interval.kind_of?(Integer) && !interval.kind_of?(Proc)
|
||||
if interval != 'idle' && interval != :idle \
|
||||
&& !interval.kind_of?(Integer) && !TkComm._callback_entry?(interval)
|
||||
fail ArguemntError, "expect Integer or Proc"
|
||||
fail ArgumentError, "expect Integer or Proc"
|
||||
end
|
||||
@sleep_time = interval
|
||||
end
|
||||
|
@ -259,7 +259,7 @@ class TkTimer
|
|||
# && !interval.kind_of?(Integer) && !interval.kind_of?(Proc)
|
||||
if interval != 'idle' && interval != :idle \
|
||||
&& !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
|
||||
@sleep_time = interval
|
||||
|
||||
|
@ -283,7 +283,7 @@ class TkTimer
|
|||
@loop_exec = 0
|
||||
else
|
||||
if not loop_exec.kind_of?(Integer)
|
||||
fail ArguemntError, "expect Integer for 2nd argument"
|
||||
fail ArgumentError, "expect Integer for 2nd argument"
|
||||
end
|
||||
@loop_exec = loop_exec
|
||||
end
|
||||
|
@ -334,7 +334,7 @@ class TkTimer
|
|||
sleep = @init_sleep unless sleep
|
||||
|
||||
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
|
||||
|
||||
@init_sleep = sleep
|
||||
|
@ -364,7 +364,7 @@ class TkTimer
|
|||
if argc > 0
|
||||
sleep = init_args.shift
|
||||
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
|
||||
@init_sleep = sleep
|
||||
end
|
||||
|
@ -436,7 +436,7 @@ class TkTimer
|
|||
fail RuntimeError, "no procedure to continue" unless cmd
|
||||
if wait
|
||||
unless wait.kind_of?(Integer)
|
||||
fail ArguemntError, "expect Integer for 1st argument"
|
||||
fail ArgumentError, "expect Integer for 1st argument"
|
||||
end
|
||||
sleep = wait
|
||||
end
|
||||
|
|
|
@ -127,7 +127,7 @@ class Tk::Vu::PieSlice
|
|||
|
||||
def initialize(parent, *args)
|
||||
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
|
||||
@parent = @pie = parent
|
||||
@ppath = parent.path
|
||||
|
@ -218,7 +218,7 @@ class Tk::Vu::NamedPieSlice
|
|||
|
||||
def initialize(parent, name, *args)
|
||||
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
|
||||
@parent = @pie = parent
|
||||
@ppath = parent.path
|
||||
|
|
Loading…
Reference in a new issue