[#26664] refactoring tcltklib.c (deleted ip check) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>

山本です。

22 messages 2005/08/01
[#26665] Re: refactoring tcltklib.c (deleted ip check) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/08/01

山本です。

[#26668] Re: refactoring tcltklib.c (deleted ip check) — Hidetoshi NAGAI <nagai@...> 2005/08/01

永井@知能.九工大です.

[#26678] Re: refactoring tcltklib.c (deleted ip check) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/08/01

山本です。

[#26684] Re: refactoring tcltklib.c (deleted ip check) — Hidetoshi NAGAI <nagai@...> 2005/08/01

永井@知能.九工大です.

[#26686] Re: refactoring tcltklib.c (deleted ip check) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/08/01

山本です。

[#26817] test/socket/test_tcp.rb freeze on windows — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>

山本です。

12 messages 2005/08/18

[#26829] cannot check EOF of pipe on windows — "U.Nakamura" <usa@...>

こんにちは、なかむら(う)です。

19 messages 2005/08/19
[#26830] Re: cannot check EOF of pipe on windows — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/08/19

山本です。

[#26831] Re: cannot check EOF of pipe on windows — "U.Nakamura" <usa@...> 2005/08/19

こんにちは、なかむら(う)です。

[#26832] Re: cannot check EOF of pipe on windows — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/08/19

山本です。

[#26836] Re: cannot check EOF of pipe on windows — nobuyoshi nakada <nobuyoshi.nakada@...> 2005/08/19

なかだです。

[#26872] irb -I/ruby -Iと$LOAD_PATH — akira yamada / やまだあきら <akira@...>

Debianユーザからruby -Iとirb -Iで

17 messages 2005/08/24
[#26873] Re: irb -I/ruby -Iと$LOAD_PATH — nobuyoshi nakada <nobuyoshi.nakada@...> 2005/08/24

なかだです。

[#26875] Re: irb -I/ruby -Iと$LOAD_PATH — akira yamada / やまだあきら <akira@...> 2005/08/24

nobuyoshi nakada wrote:

[#26885] Re: irb -I/ruby -Iと$LOAD_PATH — keiju@... (石塚圭樹) 2005/08/26

けいじゅ@いしつかです.

[#26897] fail on make install — KIMURA Koichi <kimura.koichi@...>

木村です。

28 messages 2005/08/29
[#26898] Re: fail on make install — "U.Nakamura" <usa@...> 2005/08/29

こんにちは、なかむら(う)です。

[#26903] Re: fail on make install — KIMURA Koichi <kbk@...> 2005/08/29

木村です。

[#26922] Re: fail on make install — KIMURA Koichi <kimura.koichi@...> 2005/08/30

木村です。

[#26926] Re: fail on make install — KIMURA Koichi <kimura.koichi@...> 2005/08/31

木村です。

[#26927] Re: fail on make install — "U.Nakamura" <usa@...> 2005/08/31

こんにちは、なかむら(う)です。

[#26928] Re: fail on make install — KIMURA Koichi <kimura.koichi@...> 2005/08/31

木村です。

[#26929] Re: fail on make install — "U.Nakamura" <usa@...> 2005/08/31

こんにちは、なかむら(う)です。

[#26930] Re: fail on make install — nobuyoshi nakada <nobuyoshi.nakada@...> 2005/08/31

なかだです。

[#26931] Re: fail on make install — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/08/31

山本です。

[#26933] Re: fail on make install — nobu@... 2005/08/31

なかだです。

[#26938] Re: fail on make install — nobuyoshi nakada <nobuyoshi.nakada@...> 2005/09/01

なかだです。

[#26939] Re: fail on make install — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/09/01

山本です。

[#26900] multiplying empty string — nobuyoshi nakada <nobuyoshi.nakada@...>

19 messages 2005/08/29
[#26904] Re: multiplying empty string — Yukihiro Matsumoto <matz@...> 2005/08/29

まつもと ゆきひろです

[#26907] Re: multiplying empty string — Tanaka Akira <akr@...17n.org> 2005/08/29

In article <1125327516.070646.12845.nullmailer@x31.priv.netlab.jp>,

[#26909] Re: multiplying empty string — Yukihiro Matsumoto <matz@...> 2005/08/29

まつもと ゆきひろです

[ruby-dev:26771] Re: some questions about tcltklib.c

From: Hidetoshi NAGAI <nagai@...>
Date: 2005-08-09 08:22:19 UTC
List: ruby-dev #26771
永井@知能.九工大です.

From: H.Yamamoto <ocean@m2.ccsnet.ne.jp>
Subject: [ruby-dev:26770] Re: some questions about tcltklib.c
Date: Tue, 9 Aug 2005 16:53:59 +0900
Message-ID: <20050809165357.2CAB0F58.ocean@m2.ccsnet.ne.jp>
> >treectrl のデモが動くようになりました。
> と思ったら、バインドの解除や
   (snip)
> 設定が動いていません。

ごめんなさい.
ちょっと時間がないのでテスト不十分ですが,
添付のパッチで OK だと思います.

# tkextlib のいくつかにも下記の canvas.rb 同様の修正が要るかも.

Index: ext/tk/lib/tk.rb
===================================================================
RCS file: /var/cvs/src/ruby/ext/tk/lib/tk.rb,v
retrieving revision 1.102.2.65
diff -u -r1.102.2.65 tk.rb
--- ext/tk/lib/tk.rb	9 Aug 2005 06:15:58 -0000	1.102.2.65
+++ ext/tk/lib/tk.rb	9 Aug 2005 08:19:56 -0000
@@ -2872,8 +2872,7 @@
 
       __ruby2val_optkeys.each{|key, method|
         key = key.to_s
-        value = slot[key]
-        slot[key] = method.call(value) if value
+        slot[key] = method.call(slot[key]) if slot.has_key?(key)
       }
 
       __keyonly_optkeys.each{|defkey, undefkey|
@@ -2910,7 +2909,7 @@
           tk_call(*(__config_cmd << "-#{undefkey}"))
         end
       elsif ( method = _symbolkey2str(__ruby2val_optkeys)[slot] )
-        method.call(value)
+        tk_call(*(__config_cmd << "-#{slot}" << method.call(value)))
       elsif ( method = _symbolkey2str(__methodcall_optkeys)[slot] )
         self.__send__(method, value)
       elsif (slot =~ /^(|latin|ascii|kanji)(#{__font_optkeys.join('|')})$/)
@@ -3884,8 +3883,7 @@
 
         __ruby2val_optkeys.each{|key, method|
           key = key.to_s
-          value = keys[key]
-          keys[key] = method.call(value) if value
+          keys[key] = method.call(keys[key]) if keys.has_key?(key)
         }
       end
       if without_creating && keys
Index: ext/tk/lib/tk/canvas.rb
===================================================================
RCS file: /var/cvs/src/ruby/ext/tk/lib/tk/canvas.rb,v
retrieving revision 1.1.2.16
diff -u -r1.1.2.16 canvas.rb
--- ext/tk/lib/tk/canvas.rb	23 Jun 2005 07:57:39 -0000	1.1.2.16
+++ ext/tk/lib/tk/canvas.rb	9 Aug 2005 08:19:57 -0000
@@ -606,6 +606,11 @@
         methodkeys[key] = keys.delete(key) if keys.key?(key)
       }
 
+      __item_ruby2val_optkeys.each{|key, method|
+        key = key.to_s
+        keys[key] = method.call(keys[key]) if keys.has_key?(key)
+      }
+
       #args = args.flatten.concat(hash_kv(keys))
       args = args.flatten.concat(itemconfig_hash_kv(nil, keys))
     else
Index: ext/tk/lib/tk/itemconfig.rb
===================================================================
RCS file: /var/cvs/src/ruby/ext/tk/lib/tk/itemconfig.rb,v
retrieving revision 1.1.2.8
diff -u -r1.1.2.8 itemconfig.rb
--- ext/tk/lib/tk/itemconfig.rb	9 Aug 2005 06:16:00 -0000	1.1.2.8
+++ ext/tk/lib/tk/itemconfig.rb	9 Aug 2005 08:19:57 -0000
@@ -230,8 +230,7 @@
 
       __item_ruby2val_optkeys(tagid(tagOrId)).each{|key, method|
         key = key.to_s
-        value = slot[key]
-        slot[key] = method.call(tagOrId, value) if value
+        slot[key] = method.call(tagOrId, slot[key]) if slot.has_key?(key)
       }
 
       __item_keyonly_optkeys(tagid(tagOrId)).each{|defkey, undefkey|
@@ -268,7 +267,7 @@
           tk_call(*(__item_config_cmd(tagid(tagOrId)) << "-#{undefkey}"))
         end
       elsif ( method = _symbolkey2str(__item_ruby2val_optkeys(tagid(tagOrId)))[slot] )
-        method.call(tagOrId, value)
+        tk_call(*(__item_config_cmd(tagid(tagOrId)) << "-#{slot}" << method.call(tagOrId, value)))
       elsif ( method = _symbolkey2str(__item_methodcall_optkeys(tagid(tagOrId)))[slot] )
         self.__send__(method, tagOrId, value)
       elsif (slot =~ /^(|latin|ascii|kanji)(#{__item_font_optkeys(tagid(tagOrId)).join('|')})$/)

-- 
                                       永井 秀利 (九工大 知能情報)
                                           nagai@ai.kyutech.ac.jp

In This Thread