mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* 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
This commit is contained in:
parent
80766db4ae
commit
38a63b25bc
7 changed files with 33 additions and 10 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
Wed Aug 10 10:29:40 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
|
* 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 <nagai@ai.kyutech.ac.jp>
|
Tue Aug 9 15:12:04 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
* ext/tcltklib/tcltklib.c: remove dangerous 'rb_jump_tag's.
|
* ext/tcltklib/tcltklib.c: remove dangerous 'rb_jump_tag's.
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2005-08-10 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
|
* ext/tk/lib/tkextlib/blt/component.rb: didn't check
|
||||||
|
__item_ruby2val_optkeys().
|
||||||
|
|
||||||
2005-08-09 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
2005-08-09 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
* ext/tk/lib/tkextlib/blt/barchart.rb: support to treat tkvariable-type
|
* ext/tk/lib/tkextlib/blt/barchart.rb: support to treat tkvariable-type
|
||||||
|
|
|
@ -2872,8 +2872,7 @@ module TkConfigMethod
|
||||||
|
|
||||||
__ruby2val_optkeys.each{|key, method|
|
__ruby2val_optkeys.each{|key, method|
|
||||||
key = key.to_s
|
key = key.to_s
|
||||||
value = slot[key]
|
slot[key] = method.call(slot[key]) if slot.has_key?(key)
|
||||||
slot[key] = method.call(value) if value
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__keyonly_optkeys.each{|defkey, undefkey|
|
__keyonly_optkeys.each{|defkey, undefkey|
|
||||||
|
@ -2910,7 +2909,7 @@ module TkConfigMethod
|
||||||
tk_call(*(__config_cmd << "-#{undefkey}"))
|
tk_call(*(__config_cmd << "-#{undefkey}"))
|
||||||
end
|
end
|
||||||
elsif ( method = _symbolkey2str(__ruby2val_optkeys)[slot] )
|
elsif ( method = _symbolkey2str(__ruby2val_optkeys)[slot] )
|
||||||
method.call(value)
|
tk_call(*(__config_cmd << "-#{slot}" << method.call(value)))
|
||||||
elsif ( method = _symbolkey2str(__methodcall_optkeys)[slot] )
|
elsif ( method = _symbolkey2str(__methodcall_optkeys)[slot] )
|
||||||
self.__send__(method, value)
|
self.__send__(method, value)
|
||||||
elsif (slot =~ /^(|latin|ascii|kanji)(#{__font_optkeys.join('|')})$/)
|
elsif (slot =~ /^(|latin|ascii|kanji)(#{__font_optkeys.join('|')})$/)
|
||||||
|
@ -3884,8 +3883,7 @@ class TkWindow<TkObject
|
||||||
|
|
||||||
__ruby2val_optkeys.each{|key, method|
|
__ruby2val_optkeys.each{|key, method|
|
||||||
key = key.to_s
|
key = key.to_s
|
||||||
value = keys[key]
|
keys[key] = method.call(keys[key]) if keys.has_key?(key)
|
||||||
keys[key] = method.call(value) if value
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
if without_creating && keys
|
if without_creating && keys
|
||||||
|
@ -4439,7 +4437,7 @@ end
|
||||||
#Tk.freeze
|
#Tk.freeze
|
||||||
|
|
||||||
module Tk
|
module Tk
|
||||||
RELEASE_DATE = '2005-08-09'.freeze
|
RELEASE_DATE = '2005-08-10'.freeze
|
||||||
|
|
||||||
autoload :AUTO_PATH, 'tk/variable'
|
autoload :AUTO_PATH, 'tk/variable'
|
||||||
autoload :TCL_PACKAGE_PATH, 'tk/variable'
|
autoload :TCL_PACKAGE_PATH, 'tk/variable'
|
||||||
|
|
|
@ -606,6 +606,11 @@ class TkcItem<TkObject
|
||||||
methodkeys[key] = keys.delete(key) if keys.key?(key)
|
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 = args.flatten.concat(hash_kv(keys))
|
#args = args.flatten.concat(hash_kv(keys))
|
||||||
args = args.flatten.concat(itemconfig_hash_kv(nil, keys))
|
args = args.flatten.concat(itemconfig_hash_kv(nil, keys))
|
||||||
else
|
else
|
||||||
|
|
|
@ -230,8 +230,7 @@ module TkItemConfigMethod
|
||||||
|
|
||||||
__item_ruby2val_optkeys(tagid(tagOrId)).each{|key, method|
|
__item_ruby2val_optkeys(tagid(tagOrId)).each{|key, method|
|
||||||
key = key.to_s
|
key = key.to_s
|
||||||
value = slot[key]
|
slot[key] = method.call(tagOrId, slot[key]) if slot.has_key?(key)
|
||||||
slot[key] = method.call(tagOrId, value) if value
|
|
||||||
}
|
}
|
||||||
|
|
||||||
__item_keyonly_optkeys(tagid(tagOrId)).each{|defkey, undefkey|
|
__item_keyonly_optkeys(tagid(tagOrId)).each{|defkey, undefkey|
|
||||||
|
@ -268,7 +267,7 @@ module TkItemConfigMethod
|
||||||
tk_call(*(__item_config_cmd(tagid(tagOrId)) << "-#{undefkey}"))
|
tk_call(*(__item_config_cmd(tagid(tagOrId)) << "-#{undefkey}"))
|
||||||
end
|
end
|
||||||
elsif ( method = _symbolkey2str(__item_ruby2val_optkeys(tagid(tagOrId)))[slot] )
|
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] )
|
elsif ( method = _symbolkey2str(__item_methodcall_optkeys(tagid(tagOrId)))[slot] )
|
||||||
self.__send__(method, tagOrId, value)
|
self.__send__(method, tagOrId, value)
|
||||||
elsif (slot =~ /^(|latin|ascii|kanji)(#{__item_font_optkeys(tagid(tagOrId)).join('|')})$/)
|
elsif (slot =~ /^(|latin|ascii|kanji)(#{__item_font_optkeys(tagid(tagOrId)).join('|')})$/)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
[ current support status of Tcl/Tk extensions ]
|
[ current support status of Tcl/Tk extensions ]
|
||||||
|
|
||||||
*******<<< RELEASE_DATE of the libraries : 2005/08/09 >>>*******
|
*******<<< RELEASE_DATE of the libraries : 2005/08/10 >>>*******
|
||||||
|
|
||||||
The following list shows *CURRENT* status when this file was modifyed
|
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
|
at last. If you want to add other Tcl/Tk extensions to the planed list
|
||||||
|
|
|
@ -906,6 +906,11 @@ module Tk::BLT
|
||||||
methodkeys[key] = keys.delete(key) if keys.key?(key)
|
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)
|
args = itemconfig_hash_kv(nil, keys)
|
||||||
else
|
else
|
||||||
args = []
|
args = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue