From 38a63b25bc3c23b918ff486b1637cd8c6f24d223 Mon Sep 17 00:00:00 2001 From: nagai Date: Wed, 10 Aug 2005 01:32:44 +0000 Subject: [PATCH] * ext/tk/lib/tk.rb: fix bug on handling __ruby2val_optkeys(). * ext/tk/lib/tk/itemconfig.rb: fix bug on handling __item_ruby2val_optkeys(). * ext/tk/lib/tk/canvas.rb: didn't check __item_ruby2val_optkeys(). * ext/tk/lib/tkextlib/blt/component.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 11 +++++++++++ ext/tk/ChangeLog.tkextlib | 5 +++++ ext/tk/lib/tk.rb | 10 ++++------ ext/tk/lib/tk/canvas.rb | 5 +++++ ext/tk/lib/tk/itemconfig.rb | 5 ++--- ext/tk/lib/tkextlib/SUPPORT_STATUS | 2 +- ext/tk/lib/tkextlib/blt/component.rb | 5 +++++ 7 files changed, 33 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 89c1c19602..d7141ff4dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +Wed Aug 10 10:29:40 2005 Hidetoshi NAGAI + + * ext/tk/lib/tk.rb: fix bug on handling __ruby2val_optkeys(). + + * ext/tk/lib/tk/itemconfig.rb: fix bug on handling + __item_ruby2val_optkeys(). + + * ext/tk/lib/tk/canvas.rb: didn't check __item_ruby2val_optkeys(). + + * ext/tk/lib/tkextlib/blt/component.rb: ditto. + Tue Aug 9 15:12:04 2005 Hidetoshi NAGAI * ext/tcltklib/tcltklib.c: remove dangerous 'rb_jump_tag's. diff --git a/ext/tk/ChangeLog.tkextlib b/ext/tk/ChangeLog.tkextlib index e5c99399e1..a0c1571f3b 100644 --- a/ext/tk/ChangeLog.tkextlib +++ b/ext/tk/ChangeLog.tkextlib @@ -1,3 +1,8 @@ +2005-08-10 Hidetoshi NAGAI + + * ext/tk/lib/tkextlib/blt/component.rb: didn't check + __item_ruby2val_optkeys(). + 2005-08-09 Hidetoshi NAGAI * ext/tk/lib/tkextlib/blt/barchart.rb: support to treat tkvariable-type diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index a190b6f1c7..576ba3b1f4 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -2872,8 +2872,7 @@ module TkConfigMethod __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 @@ module TkConfigMethod 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 @@ class TkWindow>>******* + *******<<< RELEASE_DATE of the libraries : 2005/08/10 >>>******* The following list shows *CURRENT* status when this file was modifyed at last. If you want to add other Tcl/Tk extensions to the planed list diff --git a/ext/tk/lib/tkextlib/blt/component.rb b/ext/tk/lib/tkextlib/blt/component.rb index 87ed838da6..0b58195c96 100644 --- a/ext/tk/lib/tkextlib/blt/component.rb +++ b/ext/tk/lib/tkextlib/blt/component.rb @@ -906,6 +906,11 @@ module Tk::BLT methodkeys[key] = keys.delete(key) if keys.key?(key) } + __item_ruby2val_optkeys(nil).each{|key, method| + key = key.to_s + keys[key] = method.call(keys[key]) if keys.has_key?(key) + } + args = itemconfig_hash_kv(nil, keys) else args = []