[前][次][番号順一覧][スレッド一覧]

ruby-changes:20826

From: naruse <ko1@a...>
Date: Sun, 7 Aug 2011 16:21:33 +0900 (JST)
Subject: [ruby-changes:20826] naruse:r32871 (trunk): * ext/tk/lib/tk/wm.rb (Tk::Wm.command): Add the missing receiver

naruse	2011-08-07 00:44:06 +0900 (Sun, 07 Aug 2011)

  New Revision: 32871

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32871

  Log:
    * ext/tk/lib/tk/wm.rb (Tk::Wm.command): Add the missing receiver
      before calling epath. patched by flori
      https://github.com/flori/ruby/commit/aa9474d32e5f2c57f8b0e2e0c528a03f06a4d433

  Modified files:
    trunk/ChangeLog
    trunk/ext/tk/lib/tk/wm.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32870)
+++ ChangeLog	(revision 32871)
@@ -1,3 +1,9 @@
+Sun Aug  7 00:42:55 2011  NARUSE, Yui  <naruse@r...>
+
+	* ext/tk/lib/tk/wm.rb (Tk::Wm.command): Add the missing receiver
+	  before calling epath. patched by flori
+	  https://github.com/flori/ruby/commit/aa9474d32e5f2c57f8b0e2e0c528a03f06a4d433
+
 Sat Aug  6 07:06:34 2011  Eric Hodel  <drbrain@s...>
 
 	* marshal.c (w_object):  Fix exception message when _dump_data is not
Index: ext/tk/lib/tk/wm.rb
===================================================================
--- ext/tk/lib/tk/wm.rb	(revision 32870)
+++ ext/tk/lib/tk/wm.rb	(revision 32871)
@@ -83,11 +83,11 @@
 
     def Wm.command(win, value=nil)
       if value
-        tk_call('wm', 'command', epath, value)
+        tk_call('wm', 'command', win.epath, value)
         win
       else
-        #procedure(tk_call('wm', 'command', epath))
-        tk_call('wm', 'command', epath)
+        #procedure(tk_call('wm', 'command', win.epath))
+        tk_call('wm', 'command', win.epath)
       end
     end
     def wm_command(value=nil)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]