52 |
plugin[ICON_PATH].subscribe do |event, slot| |
plugin[ICON_PATH].subscribe do |event, slot| |
53 |
if event == :notify_slot_add |
if event == :notify_slot_add |
54 |
app = slot['/system/ui/fox/FXApp'].data |
app = slot['/system/ui/fox/FXApp'].data |
55 |
path = "#{plugin.plugin_configuration.base_path}/icons/#{slot.name}.png" |
path = "#{plugin.plugin_configuration.full_base_path}/icons/#{slot.name}.png" |
56 |
if FileTest.exist?(path) |
if FileTest.exist?(path) |
57 |
slot.data = FXPNGIcon.new(app, File.open(path, "rb").read) |
slot.data = FXPNGIcon.new(app, File.open(path, "rb").read) |
58 |
slot.data.create |
slot.data.create |