1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* {ext,lib,test}/**/*.rb: removed trailing spaces.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-03-06 03:56:38 +00:00
parent 9b52ae2e64
commit 287a34ae0d
856 changed files with 13989 additions and 13989 deletions

View file

@ -2,7 +2,7 @@
# setup.rb -- setup script before calling TkPackage.require()
#
# If you need some setup operations (for example, add a library path
# to the library search path) before using Tcl/Tk library packages
# wrapped by Ruby scripts in this directory, please write the setup
# to the library search path) before using Tcl/Tk library packages
# wrapped by Ruby scripts in this directory, please write the setup
# operations in this file.
#

View file

@ -46,7 +46,7 @@ class Tk::Winico
end
def self.info
simplelist(Tk.tk_call('winico', 'info')).collect{|id|
simplelist(Tk.tk_call('winico', 'info')).collect{|id|
Tk::Winico.id2obj(id)
}
end
@ -82,7 +82,7 @@ class Tk::Winico
elsif winico_id
@id = winico_id
else
fail ArgumentError,
fail ArgumentError,
"must be given proper information from where loading icons"
end
@path = @id
@ -96,7 +96,7 @@ class Tk::Winico
end
def set_window(win_id, *opts) # opts := ?'big'|'small'?, ?pos?
# NOTE:: the window, which is denoted by win_id, MUST BE MAPPED.
# NOTE:: the window, which is denoted by win_id, MUST BE MAPPED.
# If not, then this may fail or crash.
tk_call('winico', 'setwindow', win_id, @id, *opts)
end
@ -119,22 +119,22 @@ class Tk::Winico
class Winico_callback < TkValidateCommand
class ValidateArgs < TkUtil::CallbackSubst
KEY_TBL = [
[ ?m, ?s, :message ],
[ ?i, ?x, :icon ],
[ ?x, ?n, :x ],
[ ?y, ?n, :y ],
[ ?X, ?n, :last_x ],
[ ?Y, ?n, :last_y ],
[ ?t, ?n, :tickcount ],
[ ?w, ?n, :icon_idnum ],
[ ?l, ?n, :msg_idnum ],
[ ?m, ?s, :message ],
[ ?i, ?x, :icon ],
[ ?x, ?n, :x ],
[ ?y, ?n, :y ],
[ ?X, ?n, :last_x ],
[ ?Y, ?n, :last_y ],
[ ?t, ?n, :tickcount ],
[ ?w, ?n, :icon_idnum ],
[ ?l, ?n, :msg_idnum ],
nil
]
PROC_TBL = [
[ ?n, TkComm.method(:number) ],
[ ?s, TkComm.method(:string) ],
[ ?x, proc{|id|
[ ?n, TkComm.method(:number) ],
[ ?s, TkComm.method(:string) ],
[ ?x, proc{|id|
Tk::Winico::WinicoID_TBL.mutex.synchronize{
if Tk::Winico::WinicoID_TBL.key?(id)
obj = Tk::Winico::WinicoID_TBL[id]
@ -146,7 +146,7 @@ class Tk::Winico
end
obj
}
} ],
} ],
nil
]