Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_2_180) is shown here.
fetch_icon(name)
public
Returns the Gdk::Pixbuf of the icon named name from the icon
cache.
# File ext/json/lib/json/editor.rb, line 39
def Editor.fetch_icon(name)
@icon_cache ||= {}
unless @icon_cache.key?(name)
path = File.dirname(__FILE__)
@icon_cache[name] = Gdk::Pixbuf.new(File.join(path, name + '.xpm'))
end
@icon_cache[name]
end