Method: Icon_Loader#make_icon
- Defined in:
- lib/Icon_Loader.rb
#make_icon(filename) ⇒ Object
Constructs an icon from the given filename (from the icons directory).
26 27 28 29 30 31 32 33 34 |
# File 'lib/Icon_Loader.rb', line 26 def make_icon(filename) filename = File.join($cfg.icons_path, filename) icon = nil File.open(filename, "rb") do |f| icon = FXPNGIcon.new(@app, f.read, 0) end icon.create icon end |