fx/splitter.rb
# Convenience function to load & construct an icon
Convenience function to load & construct an icon
Convenience function to load & construct an icon
def makeIcon(filename)
    begin
      filename = File.join("icons", filename)
      icon = nil
      File.open(filename, "rb") do |f|
        icon = FXPNGIcon.new(getApp(), f.read)
      end
      icon
    rescue
    end
  end
def makeIcon ( filename ) begin filename = File . join ( "icons" , filename ) icon = nil File . open ( filename , "rb" ) do | f | icon = FXPNGIcon . new ( getApp ( ) , f . read ) end icon rescue end end
Convenience function to load & construct an icon
Convenience function to load & construct an icon
# raise RuntimeError, "Couldn't load icon: #{filename}"
filename