/[freeride]/freeride/plugins/rubyide_fox_gui/toolbar.rb
ViewVC logotype

Diff of /freeride/plugins/rubyide_fox_gui/toolbar.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by curthibbs, Wed Apr 16 06:46:24 2003 UTC revision 1.5 by ljulliar, Thu May 1 12:34:39 2003 UTC
# Line 30  module FreeRIDE Line 30  module FreeRIDE
30          # Start processing icons          # Start processing icons
31          plugin[ICON_PATH].subscribe do |event, slot|          plugin[ICON_PATH].subscribe do |event, slot|
32            if event == :notify_slot_add            if event == :notify_slot_add
33              path = "#{plugin.plugin_configuration.base_path}/icons/#{slot.name}.png"              path = "#{plugin.plugin_configuration.full_base_path}/icons/#{slot.name}.png"
34              if FileTest.exist?(path)              if FileTest.exist?(path)
35                slot.data = Fox::FXPNGIcon.new(slot['/system/ui/fox/FXApp'].data, File.open(path, "rb").read)                slot.data = Fox::FXPNGIcon.new(slot['/system/ui/fox/FXApp'].data, File.open(path, "rb").read)
36                slot.data.create                slot.data.create

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26