From 3f88a70f490a3af921bc990461fbf54c7d2435d3 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 28 Jun 2002 14:42:46 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@2608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/lib/tk.rb | 18 +++++++++--------- ext/tk/lib/tkcanvas.rb | 28 ++++++++++++++-------------- ext/tk/lib/tktext.rb | 32 ++++++++++++++++---------------- 3 files changed, 39 insertions(+), 39 deletions(-) (limited to 'ext/tk/lib') diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index 2e33c4294..bc9cb0676 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