summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tk.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-28 14:42:46 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-28 14:42:46 +0000
commitf0221db4626bb589f230bf239a7f9df83d7e444f (patch)
tree0bd6a2a6dde695b2ac3cf1193419676a78f914b9 /ext/tk/lib/tk.rb
parentee852ed46d1a2a0f894e20e939b079c31e1cdb4b (diff)
* re.c (rb_reg_expr_str): need to process backslashes properly.
* object.c (rb_any_to_a): declare Object#to_a to be obsolete. * object.c (rb_Array): do not convert nil into [] automagically. * object.c (rb_Integer): use "to_int" instead of "to_i". [experimental] * object.c (nil_to_f): new method. * object.c (rb_Integer): Symbols and nil should cause error. * object.c (rb_Float): nil should cause error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tk.rb')
-rw-r--r--ext/tk/lib/tk.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index 2e33c4294c..bc9cb0676f 100644
--- a/ext/tk/lib/tk.rb
+++ b/ext/tk/lib/tk.rb
@@ -995,7 +995,7 @@ module Tk
tk_call 'wm', 'title', path, *args
end
def transient(*args)
- window(tk_call 'wm', 'transient', path, *args)
+ window(tk_call('wm', 'transient', path, *args))
end
def withdraw
tk_call 'wm', 'withdraw', path
@@ -1475,7 +1475,7 @@ module TkSelection
TkSelection.handle self, func, type, format
end
def TkSelection.own(win=None, func=None)
- window(tk_call 'selection', 'own', win, func)
+ window(tk_call('selection', 'own', win, func))
end
def own(func=None)
TkSelection.own self, func
@@ -1617,7 +1617,7 @@ module TkWinfo
include Tk
extend Tk
def TkWinfo.atom(name)
- number(tk_call 'winfo', 'atom', name)
+ number(tk_call('winfo', 'atom', name))
end
def winfo_atom(name)
TkWinfo.atom name
@@ -1899,7 +1899,7 @@ module TkWinfo
TkWinfo.y self
end
def TkWinfo.viewable(window)
- bool(tk_call 'winfo', 'viewable', window.path)
+ bool(tk_call('winfo', 'viewable', window.path))
end
def winfo_viewable
TkWinfo.viewable self
@@ -2469,7 +2469,7 @@ class TkObject<TkKernel
when 'text', 'label', 'show', 'data', 'file'
tk_call path, 'cget', "-#{slot}"
else
- tk_tcl2ruby tk_call path, 'cget', "-#{slot}"
+ tk_tcl2ruby tk_call(path, 'cget', "-#{slot}")
end
end
@@ -2805,9 +2805,9 @@ class TkWindow<TkObject
elsif args.length == 1
case args[0]
when 'global', :global
- return(tk_call 'grab', 'set', '-global', path)
+ return(tk_call('grab', 'set', '-global', path))
when 'release', :release
- return(tk_call 'grab', 'release', path)
+ return tk_call('grab', 'release', path)
else
val = tk_call('grab', args[0], path)
end
@@ -3329,7 +3329,7 @@ class TkListbox<TkTextWin
when 'text', 'label', 'show'
tk_send 'itemcget', index, "-#{key}"
else
- tk_tcl2ruby tk_send 'itemcget', index, "-#{key}"
+ tk_tcl2ruby tk_send('itemcget', index, "-#{key}")
end
end
def itemconfigure(index, key, val=None)
@@ -3468,7 +3468,7 @@ class TkMenu<TkWindow
when 'text', 'label', 'show'
tk_send 'entrycget', index, "-#{key}"
else
- tk_tcl2ruby tk_send 'entrycget', index, "-#{key}"
+ tk_tcl2ruby tk_send('entrycget', index, "-#{key}")
end
end
def entryconfigure(index, key, val=None)