mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 17:43:59 +02:00
* 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/branches/ruby_1_8@25240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
993f3d5d35
commit
d8812e2a14
4 changed files with 24 additions and 8 deletions
|
@ -1268,7 +1268,7 @@ module Tk::BLT
|
|||
args = []
|
||||
end
|
||||
|
||||
[args, fontkeys]
|
||||
[args, fontkeys, methodkeys]
|
||||
end
|
||||
private_class_method :_parse_create_args
|
||||
|
||||
|
@ -1276,18 +1276,20 @@ module Tk::BLT
|
|||
unless self::MarkerTypeName
|
||||
fail RuntimeError, "#{self} is an abstract class"
|
||||
end
|
||||
args, fontkeys = _parse_create_args(keys)
|
||||
args, fontkeys, methodkeys = _parse_create_args(keys)
|
||||
idnum = tk_call_without_enc(chart.path, 'marker', 'create',
|
||||
self::MarkerTypeName, *args)
|
||||
chart.marker_configure(idnum, fontkeys) unless fontkeys.empty?
|
||||
chart.marker_configure(idnum, methodkeys) unless methodkeys.empty?
|
||||
idnum.to_i # 'item id' is an integer number
|
||||
end
|
||||
|
||||
def self.create_type(chart, type, keys={})
|
||||
args, fontkeys = _parse_create_args(keys)
|
||||
args, fontkeys, methodkeys = _parse_create_args(keys)
|
||||
idnum = tk_call_without_enc(chart.path, 'marker', 'create',
|
||||
type, *args)
|
||||
chart.marker_configure(idnum, fontkeys) unless fontkeys.empty?
|
||||
chart.marker_configure(idnum, methodkeys) unless methodkeys.empty?
|
||||
id = idnum.to_i # 'item id' is an integer number
|
||||
obj = self.allocate
|
||||
obj.instance_eval{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue