From cb732bbbdc94d2a969f5f727d6018b9d7d3e291c Mon Sep 17 00:00:00 2001 From: nagai Date: Mon, 5 Oct 2009 21:29:32 +0000 Subject: * ext/tk/lib/tk/canvas.rb: *** POTENTIALLY INCOMPATIBLE *** 'tags' option of a TkcItem object gives a list of TkcTag objects. * ext/tk/lib/tkextlib/vu/dial.rb: fix logical bug. * ext/tk/lib/tk/canvas.rb, ext/tk/lib/tkextlib/blt/component.rb: lack of support for methodcall_optkeys. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 10 ++++++++++ ext/tk/lib/tk/canvas.rb | 10 +++++++--- ext/tk/lib/tkextlib/blt/component.rb | 8 +++++--- ext/tk/lib/tkextlib/vu/dial.rb | 4 ++-- 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4f1117bd0a..e74f755b95 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Tue Oct 6 06:26:00 2009 Hidetoshi NAGAI + + * * ext/tk/lib/tk/canvas.rb: *** POTENTIALLY INCOMPATIBLE *** + 'tags' option of a TkcItem object should give a list of TkcTag objs. + + * ext/tk/lib/tkextlib/vu/dial.rb: fix logical bug. + + * ext/tk/lib/tk/canvas.rb, ext/tk/lib/tkextlib/blt/component.rb: + lack of support for methodcall_optkeys. + Mon Oct 5 12:22:12 2009 Yukihiro Matsumoto * array.c (rb_ary_{times, shuffle_bang, sample}): reducing macro diff --git a/ext/tk/lib/tk/canvas.rb b/ext/tk/lib/tk/canvas.rb index 602139e00a..f0cb755bd7 100644 --- a/ext/tk/lib/tk/canvas.rb +++ b/ext/tk/lib/tk/canvas.rb @@ -25,7 +25,10 @@ module TkCanvasItemConfig private :__item_methodcall_optkeys def __item_val2ruby_optkeys(id) # { key=>proc, ... } - super(id).update('window'=>proc{|i, v| window(v)}) + super(id).update('window'=>proc{|i, v| window(v)}, + 'tags'=>proc{|i, v| + simplelist(v).collect{|tag| TkcTag.id2obj(self, tag)} + }) end private :__item_val2ruby_optkeys @@ -690,7 +693,7 @@ class TkcItem