mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/tk/lib/tkextlib/ICONS/icons.rb: fail to create instances of
Tk::ICONS [ruby-dev:26305]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c2e1ef22b9
commit
e1885a0079
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-06-08 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* lib/tkextlib/ICONS/icons.rb: fail to create instances of
|
||||
Tk::ICONS [ruby-dev:26305].
|
||||
|
||||
2005-06-07 ocean <ocean@ruby-lang.org>
|
||||
|
||||
* sample/tkextlib/tile/themes/kroc.{rb,tcl}: also support tile 0.4.
|
||||
|
|
|
@ -76,7 +76,11 @@ module Tk
|
|||
##########################################
|
||||
|
||||
def self.new(name, keys=nil)
|
||||
Tk_IMGTBL["::icon::#{name}"] || super
|
||||
unless obj = Tk_IMGTBL["::icon::#{name}"]
|
||||
obj = allocate()
|
||||
obj.instance_eval{initialize(name, keys)}
|
||||
end
|
||||
obj
|
||||
end
|
||||
|
||||
def initialize(name, keys=nil)
|
||||
|
|
Loading…
Reference in a new issue