mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: call wrong method in
Tk::TreeCtrl#*_configinfo and current_*_configinfo method git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f1f87b2613
commit
b547538e68
2 changed files with 32 additions and 27 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-03-17 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
|
* lib/tkextlib/treectrl/tktreectrl.rb: call wrong method in
|
||||||
|
Tk::TreeCtrl#*_configinfo and current_*_configinfo method
|
||||||
|
|
||||||
2005-03-16 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
2005-03-16 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
* lib/tkextlib/SUPPORT_STATUS: change the status of TkImg
|
* lib/tkextlib/SUPPORT_STATUS: change the status of TkImg
|
||||||
|
|
|
@ -230,7 +230,7 @@ module Tk::TreeCtrl::ConfigMethod
|
||||||
private :__item_configinfo_struct
|
private :__item_configinfo_struct
|
||||||
|
|
||||||
def __item_numstrval_optkeys(id)
|
def __item_numstrval_optkeys(id)
|
||||||
if id.kind_of?(Array) && id[0] == 'debug'
|
if id == 'debug'
|
||||||
['displaydelay']
|
['displaydelay']
|
||||||
else
|
else
|
||||||
super(id)
|
super(id)
|
||||||
|
@ -239,10 +239,10 @@ module Tk::TreeCtrl::ConfigMethod
|
||||||
private :__item_numstrval_optkeys
|
private :__item_numstrval_optkeys
|
||||||
|
|
||||||
def __item_boolval_optkeys(id)
|
def __item_boolval_optkeys(id)
|
||||||
if id.kind_of?(Array)
|
if id == 'debug'
|
||||||
|
['data', 'display', 'enable']
|
||||||
|
elsif id.kind_of?(Array)
|
||||||
case id[0]
|
case id[0]
|
||||||
when 'debug'
|
|
||||||
['data', 'display', 'enable']
|
|
||||||
when 'column'
|
when 'column'
|
||||||
['button', 'expand', 'squeeze', 'sunken', 'visible', 'widthhack']
|
['button', 'expand', 'squeeze', 'sunken', 'visible', 'widthhack']
|
||||||
when 'element'
|
when 'element'
|
||||||
|
@ -254,10 +254,10 @@ module Tk::TreeCtrl::ConfigMethod
|
||||||
super(id)
|
super(id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
private :__item_listval_optkeys
|
private :__item_boolval_optkeys
|
||||||
|
|
||||||
def __item_strval_optkeys(id)
|
def __item_strval_optkeys(id)
|
||||||
if id.kind_of?(Array) && id[0] == 'debug'
|
if id == 'debug'
|
||||||
['erasecolor']
|
['erasecolor']
|
||||||
else
|
else
|
||||||
super(id)
|
super(id)
|
||||||
|
@ -301,23 +301,23 @@ module Tk::TreeCtrl::ConfigMethod
|
||||||
itemconfigure(['column', tagOrId], slot, value)
|
itemconfigure(['column', tagOrId], slot, value)
|
||||||
end
|
end
|
||||||
def column_configinfo(tagOrId, slot=nil)
|
def column_configinfo(tagOrId, slot=nil)
|
||||||
itemconfigure(['column', tagOrId], slot)
|
itemconfiginfo(['column', tagOrId], slot)
|
||||||
end
|
end
|
||||||
def current_column_configinfo(tagOrId, slot=nil)
|
def current_column_configinfo(tagOrId, slot=nil)
|
||||||
itemconfigure(['column', tagOrId], slot)
|
current_itemconfiginfo(['column', tagOrId], slot)
|
||||||
end
|
end
|
||||||
|
|
||||||
def debug_cget(tagOrId, option)
|
def debug_cget(option)
|
||||||
itemcget(['debug', tagOrId], option)
|
itemcget('debug', option)
|
||||||
end
|
end
|
||||||
def debug_configure(tagOrId, slot, value=None)
|
def debug_configure(slot, value=None)
|
||||||
itemconfigure(['debug', tagOrId], slot, value)
|
itemconfigure('debug', slot, value)
|
||||||
end
|
end
|
||||||
def debug_configinfo(tagOrId, slot=nil)
|
def debug_configinfo(slot=nil)
|
||||||
itemconfigure(['debug', tagOrId], slot)
|
itemconfiginfo('debug', slot)
|
||||||
end
|
end
|
||||||
def debug_element_configinfo(tagOrId, slot=nil)
|
def current_debug_configinfo(slot=nil)
|
||||||
itemconfigure(['debug', tagOrId], slot)
|
current_itemconfiginfo('debug', slot)
|
||||||
end
|
end
|
||||||
|
|
||||||
def dragimage_cget(tagOrId, option)
|
def dragimage_cget(tagOrId, option)
|
||||||
|
@ -327,10 +327,10 @@ module Tk::TreeCtrl::ConfigMethod
|
||||||
itemconfigure(['dragimage', tagOrId], slot, value)
|
itemconfigure(['dragimage', tagOrId], slot, value)
|
||||||
end
|
end
|
||||||
def dragimage_configinfo(tagOrId, slot=nil)
|
def dragimage_configinfo(tagOrId, slot=nil)
|
||||||
itemconfigure(['dragimage', tagOrId], slot)
|
itemconfiginfo(['dragimage', tagOrId], slot)
|
||||||
end
|
end
|
||||||
def current_dragimage_configinfo(tagOrId, slot=nil)
|
def current_dragimage_configinfo(tagOrId, slot=nil)
|
||||||
itemconfigure(['dragimage', tagOrId], slot)
|
current_itemconfiginfo(['dragimage', tagOrId], slot)
|
||||||
end
|
end
|
||||||
|
|
||||||
def element_cget(tagOrId, option)
|
def element_cget(tagOrId, option)
|
||||||
|
@ -340,10 +340,10 @@ module Tk::TreeCtrl::ConfigMethod
|
||||||
itemconfigure(['element', tagOrId], slot, value)
|
itemconfigure(['element', tagOrId], slot, value)
|
||||||
end
|
end
|
||||||
def element_configinfo(tagOrId, slot=nil)
|
def element_configinfo(tagOrId, slot=nil)
|
||||||
itemconfigure(['element', tagOrId], slot)
|
itemconfiginfo(['element', tagOrId], slot)
|
||||||
end
|
end
|
||||||
def current_element_configinfo(tagOrId, slot=nil)
|
def current_element_configinfo(tagOrId, slot=nil)
|
||||||
itemconfigure(['element', tagOrId], slot)
|
current_itemconfiginfo(['element', tagOrId], slot)
|
||||||
end
|
end
|
||||||
|
|
||||||
def item_element_cget(tagOrId, option)
|
def item_element_cget(tagOrId, option)
|
||||||
|
@ -353,10 +353,10 @@ module Tk::TreeCtrl::ConfigMethod
|
||||||
itemconfigure([['item', 'element'], tagOrId], slot, value)
|
itemconfigure([['item', 'element'], tagOrId], slot, value)
|
||||||
end
|
end
|
||||||
def item_element_configinfo(tagOrId, slot=nil)
|
def item_element_configinfo(tagOrId, slot=nil)
|
||||||
itemconfigure([['item', 'element'], tagOrId], slot)
|
itemconfiginfo([['item', 'element'], tagOrId], slot)
|
||||||
end
|
end
|
||||||
def current_item_element_configinfo(tagOrId, slot=nil)
|
def current_item_element_configinfo(tagOrId, slot=nil)
|
||||||
itemconfigure([['item', 'element'], tagOrId], slot)
|
current_itemconfiginfo([['item', 'element'], tagOrId], slot)
|
||||||
end
|
end
|
||||||
|
|
||||||
def marquee_cget(tagOrId, option)
|
def marquee_cget(tagOrId, option)
|
||||||
|
@ -366,10 +366,10 @@ module Tk::TreeCtrl::ConfigMethod
|
||||||
itemconfigure(['marquee', tagOrId], slot, value)
|
itemconfigure(['marquee', tagOrId], slot, value)
|
||||||
end
|
end
|
||||||
def marquee_configinfo(tagOrId, slot=nil)
|
def marquee_configinfo(tagOrId, slot=nil)
|
||||||
itemconfigure(['marquee', tagOrId], slot)
|
itemconfiginfo(['marquee', tagOrId], slot)
|
||||||
end
|
end
|
||||||
def current_marquee_configinfo(tagOrId, slot=nil)
|
def current_marquee_configinfo(tagOrId, slot=nil)
|
||||||
itemconfigure(['marquee', tagOrId], slot)
|
current_itemconfiginfo(['marquee', tagOrId], slot)
|
||||||
end
|
end
|
||||||
|
|
||||||
def notify_cget(win, pattern, option)
|
def notify_cget(win, pattern, option)
|
||||||
|
@ -379,7 +379,7 @@ module Tk::TreeCtrl::ConfigMethod
|
||||||
itemconfigure(['notify', [win, pattern]], slot, value)
|
itemconfigure(['notify', [win, pattern]], slot, value)
|
||||||
end
|
end
|
||||||
def notify_configinfo(win, pattern, slot=nil)
|
def notify_configinfo(win, pattern, slot=nil)
|
||||||
itemconfigure(['notify', [win, pattern]], slot)
|
itemconfiginfo(['notify', [win, pattern]], slot)
|
||||||
end
|
end
|
||||||
alias current_notify_configinfo notify_configinfo
|
alias current_notify_configinfo notify_configinfo
|
||||||
|
|
||||||
|
@ -390,10 +390,10 @@ module Tk::TreeCtrl::ConfigMethod
|
||||||
itemconfigure(['style', tagOrId], slot, value)
|
itemconfigure(['style', tagOrId], slot, value)
|
||||||
end
|
end
|
||||||
def style_configinfo(tagOrId, slot=nil)
|
def style_configinfo(tagOrId, slot=nil)
|
||||||
itemconfigure(['style', tagOrId], slot)
|
itemconfiginfo(['style', tagOrId], slot)
|
||||||
end
|
end
|
||||||
def current_style_configinfo(tagOrId, slot=nil)
|
def current_style_configinfo(tagOrId, slot=nil)
|
||||||
itemconfigure(['style', tagOrId], slot)
|
current_itemconfiginfo(['style', tagOrId], slot)
|
||||||
end
|
end
|
||||||
|
|
||||||
private :itemcget, :itemconfigure
|
private :itemcget, :itemconfigure
|
||||||
|
|
Loading…
Add table
Reference in a new issue