diff options
Diffstat (limited to 'ext/tk/lib')
-rw-r--r-- | ext/tk/lib/multi-tk.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tk.rb | 6 | ||||
-rw-r--r-- | ext/tk/lib/tk/autoload.rb | 14 | ||||
-rw-r--r-- | ext/tk/lib/tk/font.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tk/menu.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tk/menubar.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tk/menuspec.rb | 4 | ||||
-rw-r--r-- | ext/tk/lib/tk/optiondb.rb | 6 | ||||
-rw-r--r-- | ext/tk/lib/tk/root.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tk/text.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tk/timer.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tk/txtwin_abst.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tk/wm.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tk/xim.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tkextlib/bwidget/listbox.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tkextlib/bwidget/notebook.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tkextlib/bwidget/tree.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tkextlib/iwidgets/shell.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb | 2 | ||||
-rw-r--r-- | ext/tk/lib/tkextlib/tile.rb | 6 |
20 files changed, 33 insertions, 33 deletions
diff --git a/ext/tk/lib/multi-tk.rb b/ext/tk/lib/multi-tk.rb index a5759c70cc..0fe766c049 100644 --- a/ext/tk/lib/multi-tk.rb +++ b/ext/tk/lib/multi-tk.rb @@ -41,7 +41,7 @@ end ################################################ -# exceptiopn to treat the return value from IP +# exception to treat the return value from IP class MultiTkIp_OK < Exception def self.send(thread, ret=nil) thread.raise self.new(ret) diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index 67ea8ead46..956313b54e 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -2645,7 +2645,7 @@ if (/^(8\.[1-9]|9\.|[1-9][0-9])/ =~ Tk::TCL_VERSION && !Tk::JAPANIZED_TK) def ENCODING_TABLE.get_name(enc) orig_enc = enc - # unles enc, use system default + # unless enc, use system default # 1st: Ruby/Tk default encoding # 2nd: Tcl/Tk default encoding # 3rd: Ruby's default_external @@ -2887,7 +2887,7 @@ if (/^(8\.[1-9]|9\.|[1-9][0-9])/ =~ Tk::TCL_VERSION && !Tk::JAPANIZED_TK) # from tkencoding.rb by ttate@jaist.ac.jp #attr_accessor :encoding def encoding=(name) - self.force_default_encoding = true # for comaptibility + self.force_default_encoding = true # for compatibility self.default_encoding = name end @@ -5165,7 +5165,7 @@ class TkWindow<TkObject # try to configure configure(keys) rescue - # fail => includes options adaptable when creattion only? + # fail => includes options adaptable when creation only? begin tk_call_without_enc('destroy', @path) rescue diff --git a/ext/tk/lib/tk/autoload.rb b/ext/tk/lib/tk/autoload.rb index 3d19fb053d..ef82c8944c 100644 --- a/ext/tk/lib/tk/autoload.rb +++ b/ext/tk/lib/tk/autoload.rb @@ -499,7 +499,7 @@ class << Tk replace_topobj(sym, obj) else # current_obj != topalias_defined?(sym) - # Maybe current_obj is defined by user. --> OWNER[sym] = faise + # Maybe current_obj is defined by user. --> OWNER[sym] = false # Keep Object::sym. @TOPLEVEL_ALIAS_OWNER[sym] = false @TOPLEVEL_ALIAS_TABLE[target][sym] = obj @@ -542,7 +542,7 @@ class << Tk else # NOT topalias_defined?(sym) # Nobody controls ALIAS[sym]. - # At leaset, current widget set doesn't control ALIAS[sym]. + # At least, current widget set doesn't control ALIAS[sym]. # Keep Object::sym (even if it is not defined) # Keep OWNER[sym]. @TOPLEVEL_ALIAS_TABLE[target][sym] = obj @@ -610,20 +610,20 @@ class << Tk if cur_obj = topobj_defined?(sym) if ! cur_obj.kind_of?(String) && (cur_alias = topalias_defined?(sym)) if cur_alias.kind_of?(String) - # Mayby, user replaced Object::sym. + # Maybe, user replaced Object::sym. # Make Object::sym out of control. @TOPLEVEL_ALIAS_OWNER[sym] = false elsif cur_obj == cur_alias - # Possibley, defined normally. Backup it + # Possibly, defined normally. Backup it @TOPLEVEL_ALIAS_TABLE[current][sym] = cur_alias else - # Mayby, user replaced Object::sym. + # Maybe, user replaced Object::sym. # Make Object::sym out of control. @TOPLEVEL_ALIAS_OWNER[sym] = false end end else - # Mayby, user replaced Object::sym. + # Maybe, user replaced Object::sym. # Make Object::sym out of control. @TOPLEVEL_ALIAS_OWNER[sym] = false end @@ -631,7 +631,7 @@ class << Tk when nil # Object::sym is out of control. if (cur_alias = topalias_defined?(sym)) && ! cur_alias.kind_of?(String) - # Possibley, defined normally. Backup it. + # Possibly, defined normally. Backup it. @TOPLEVEL_ALIAS_TABLE[current][sym] = cur_alias end else diff --git a/ext/tk/lib/tk/font.rb b/ext/tk/lib/tk/font.rb index 7a2a549849..4c23f73ef9 100644 --- a/ext/tk/lib/tk/font.rb +++ b/ext/tk/lib/tk/font.rb @@ -1787,7 +1787,7 @@ module TkFont::CoreMethods tk_call('font', 'configure', font, "-#{slot}", value, '-pointadjust', padjust) elsif JAPANIZED_TK && (slot == 'family' || slot == :family) - # coumpund font? + # compound font? begin compound = tk_split_simplelist(tk_call('font', 'configure', font, '-compound')) diff --git a/ext/tk/lib/tk/menu.rb b/ext/tk/lib/tk/menu.rb index 16347a98ea..a466a11012 100644 --- a/ext/tk/lib/tk/menu.rb +++ b/ext/tk/lib/tk/menu.rb @@ -525,7 +525,7 @@ Tk.__set_loaded_toplevel_aliases__('tk/menu.rb', :Tk, Tk::SysMenu_System, class Tk::SysMenu_Apple<Tk::Menu - # for Machintosh + # for Macintosh include Tk::SystemMenu SYSMENU_NAME = 'apple' end diff --git a/ext/tk/lib/tk/menubar.rb b/ext/tk/lib/tk/menubar.rb index 17cb4477c9..e27fc4914c 100644 --- a/ext/tk/lib/tk/menubar.rb +++ b/ext/tk/lib/tk/menubar.rb @@ -80,7 +80,7 @@ # 'font'=>'Helvetia 12 bold') # menubar.pack('side'=>'top', 'fill'=>'x') -# See tk/menuspce.rb about the format of the menu_spec +# See tk/menuspec.rb about the format of the menu_spec # To use add_menu, configuration must be done by calling configure after # adding all menus by add_menu, not by the constructor arguments. diff --git a/ext/tk/lib/tk/menuspec.rb b/ext/tk/lib/tk/menuspec.rb index 2de62242ff..8039676e69 100644 --- a/ext/tk/lib/tk/menuspec.rb +++ b/ext/tk/lib/tk/menuspec.rb @@ -1,7 +1,7 @@ # frozen_string_literal: false # # tk/menuspec.rb -# Hidethoshi NAGAI (nagai@ai.kyutech.ac.jp) +# Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) # # based on tkmenubar.rb : # Copyright (C) 1998 maeda shugo. All rights reserved. @@ -30,7 +30,7 @@ # [ entry_info, entry_info, ... ] # # -# underline, accelerator, and configs are optional pearameters. +# underline, accelerator, and configs are optional parameters. # Hashes are OK instead of Arrays. Then the entry type ('command', # 'checkbutton', 'radiobutton' or 'cascade') is given by 'type' key # (e.g. :type=>'cascade'). When type is 'cascade', an array of menu_info diff --git a/ext/tk/lib/tk/optiondb.rb b/ext/tk/lib/tk/optiondb.rb index b27a5e5721..ced8a111e4 100644 --- a/ext/tk/lib/tk/optiondb.rb +++ b/ext/tk/lib/tk/optiondb.rb @@ -59,7 +59,7 @@ module TkOptionDB when /\\$/ # continue cline.chop! next - when /^\s*(!|#)/ # coment + when /^\s*(!|#)/ # comment cline = '' next when /^([^:]+):(.*)$/ @@ -103,7 +103,7 @@ module TkOptionDB when /\\$/ # continue cline.chop! next - when /^\s*!/ # coment + when /^\s*!/ # comment cline = '' next when /^([^:]+):\s(.*)$/ @@ -341,7 +341,7 @@ module TkOptionDB # define new proc class : # If you want to modify the new class or create a new subclass, # you must do such operation in the block parameter. - # Because the created class is flozen after evaluating the block. + # Because the created class is frozen after evaluating the block. def new_proc_class(klass, func, safe = 4, add = false, parent = nil, &b) new_klass = __create_new_class(klass, func, safe, add, parent) new_klass.class_eval(&b) if block_given? diff --git a/ext/tk/lib/tk/root.rb b/ext/tk/lib/tk/root.rb index 3fb7c472d3..b92732fd7d 100644 --- a/ext/tk/lib/tk/root.rb +++ b/ext/tk/lib/tk/root.rb @@ -32,7 +32,7 @@ class Tk::Root<TkWindow } } - if keys # wm commands ( for backward comaptibility ) + if keys # wm commands ( for backward compatibility ) keys.each{|k,v| if v.kind_of? Array root.__send__(k,*v) diff --git a/ext/tk/lib/tk/text.rb b/ext/tk/lib/tk/text.rb index fc4f112933..616c3ae89c 100644 --- a/ext/tk/lib/tk/text.rb +++ b/ext/tk/lib/tk/text.rb @@ -1463,7 +1463,7 @@ class Tk::Text<TkTextWin val, i = _retrieve_braced_text(str, i) result.push val else - # text which may contain backslahes + # text which may contain backslashes val, i = _retrieve_backslashed_text(str, i) result.push val end diff --git a/ext/tk/lib/tk/timer.rb b/ext/tk/lib/tk/timer.rb index 794463aab1..c1457e274e 100644 --- a/ext/tk/lib/tk/timer.rb +++ b/ext/tk/lib/tk/timer.rb @@ -182,7 +182,7 @@ class TkTimer @cancel_on_exception = DEFAULT_IGNORE_EXCEPTIONS # Unless @cancel_on_exception, Ruby/Tk shows an error dialog box when - # an excepsion is raised on TkTimer callback procedure. + # an exception is raised on TkTimer callback procedure. # If @cancel_on_exception is an array of exception classes and the raised # exception is included in the array, Ruby/Tk cancels executing TkTimer # callback procedures silently (TkTimer#cancel is called and no dialog is diff --git a/ext/tk/lib/tk/txtwin_abst.rb b/ext/tk/lib/tk/txtwin_abst.rb index 3c9beef6c4..32986d4788 100644 --- a/ext/tk/lib/tk/txtwin_abst.rb +++ b/ext/tk/lib/tk/txtwin_abst.rb @@ -1,6 +1,6 @@ # frozen_string_literal: false # -# tk/txtwin_abst.rb : TkTextWin abstruct class +# tk/txtwin_abst.rb : TkTextWin abstract class # require 'tk' diff --git a/ext/tk/lib/tk/wm.rb b/ext/tk/lib/tk/wm.rb index 114ba24276..5aa67e37b6 100644 --- a/ext/tk/lib/tk/wm.rb +++ b/ext/tk/lib/tk/wm.rb @@ -311,7 +311,7 @@ module Tk # -------------------------------------------------------------- # In the future release, I want to support to embed the 'win' # into the container which has window-id 'use-id'. - # It may give users frexibility on controlling their GUI. + # It may give users flexibility on controlling their GUI. # However, it may be difficult for current Tcl/Tk (Tcl/Tk8.5.1), # because it seems to require to modify Tcl/Tk's source code. # -------------------------------------------------------------- diff --git a/ext/tk/lib/tk/xim.rb b/ext/tk/lib/tk/xim.rb index 7e77591b45..08c7d0c0b7 100644 --- a/ext/tk/lib/tk/xim.rb +++ b/ext/tk/lib/tk/xim.rb @@ -1,6 +1,6 @@ # frozen_string_literal: false # -# tk/xim.rb : control imput_method +# tk/xim.rb : control input_method # require 'tk' diff --git a/ext/tk/lib/tkextlib/bwidget/listbox.rb b/ext/tk/lib/tkextlib/bwidget/listbox.rb index 394c379a34..301eb4bb54 100644 --- a/ext/tk/lib/tkextlib/bwidget/listbox.rb +++ b/ext/tk/lib/tkextlib/bwidget/listbox.rb @@ -31,7 +31,7 @@ class Tk::BWidget::ListBox class Event_for_Items < TkEvent::Event def self._get_extra_args_tbl [ - TkComm.method(:string) # item idenfier + TkComm.method(:string) # item identifier ] end end diff --git a/ext/tk/lib/tkextlib/bwidget/notebook.rb b/ext/tk/lib/tkextlib/bwidget/notebook.rb index 05c8939a30..97e9670d01 100644 --- a/ext/tk/lib/tkextlib/bwidget/notebook.rb +++ b/ext/tk/lib/tkextlib/bwidget/notebook.rb @@ -25,7 +25,7 @@ class Tk::BWidget::NoteBook class Event_for_Tabs < TkEvent::Event def self._get_extra_args_tbl [ - TkComm.method(:string) # page idenfier + TkComm.method(:string) # page identifier ] end end diff --git a/ext/tk/lib/tkextlib/bwidget/tree.rb b/ext/tk/lib/tkextlib/bwidget/tree.rb index 688ed5f324..468b5e31c4 100644 --- a/ext/tk/lib/tkextlib/bwidget/tree.rb +++ b/ext/tk/lib/tkextlib/bwidget/tree.rb @@ -28,7 +28,7 @@ class Tk::BWidget::Tree class Event_for_Items < TkEvent::Event def self._get_extra_args_tbl [ - TkComm.method(:string) # item idenfier + TkComm.method(:string) # item identifier ] end end diff --git a/ext/tk/lib/tkextlib/iwidgets/shell.rb b/ext/tk/lib/tkextlib/iwidgets/shell.rb index f09e7d4d31..b3f8dc7fbe 100644 --- a/ext/tk/lib/tkextlib/iwidgets/shell.rb +++ b/ext/tk/lib/tkextlib/iwidgets/shell.rb @@ -20,7 +20,7 @@ class Tk::Iwidgets::Shell WidgetClassNames[WidgetClassName] ||= self def activate - tk_call(@path, 'activate') # may return val of deactibate method + tk_call(@path, 'activate') # may return val of deactivate method end def center(win=None) diff --git a/ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb b/ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb index 20488fdd48..080ffdb2bf 100644 --- a/ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb +++ b/ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb @@ -1,6 +1,6 @@ # frozen_string_literal: false # -# tkextlib/tcllib/tablelist_tlie.rb +# tkextlib/tcllib/tablelist_tile.rb # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) # # * Part of tcllib extension diff --git a/ext/tk/lib/tkextlib/tile.rb b/ext/tk/lib/tkextlib/tile.rb index ef15351066..003a978e72 100644 --- a/ext/tk/lib/tkextlib/tile.rb +++ b/ext/tk/lib/tkextlib/tile.rb @@ -1,6 +1,6 @@ # frozen_string_literal: false # -# Tile theme engin (tile widget set) support +# Tile theme engine (tile widget set) support # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) # @@ -133,14 +133,14 @@ module Tk def self.__define_LoadImages_proc_for_compatibility__! # Ttk 8.5 (Tile 0.8) lost 'LoadImages' utility procedure. - # So, some old scripts doen't work, because those scripts use the + # So, some old scripts don't work, because those scripts use the # procedure to define local styles. # Of course, rewriting such Tcl/Tk scripts isn't difficult for # Tcl/Tk users. However, it may be troublesome for Ruby/Tk users # who use such Tcl/Tk scripts as it is. # This method may help Ruby/Tk users who don't want to modify old # Tcl/Tk scripts for the latest version of Ttk (Tile) extension. - # This method defines a comaptible 'LoadImages' procedure on the + # This method defines a compatible 'LoadImages' procedure on the # Tcl/Tk interpreter working under Ruby/Tk. # Please give attention to use this method. It may conflict with # some definitions on Tcl/Tk scripts. |