/[freeride]/freeride/freebase/core.rb
ViewVC logotype

Diff of /freeride/freebase/core.rb

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

revision 1.9 by ljulliar, Fri Jun 28 19:51:27 2002 UTC revision 1.10 by richkilmer, Fri Aug 30 04:18:36 2002 UTC
# Line 52  module FreeBASE Line 52  module FreeBASE
52        load_properties        load_properties
53        load_setup        load_setup
54        @bus["/log/info"] << "--- #{@properties['config/product_name']} Started on #{Time.now.to_s}"        @bus["/log/info"] << "--- #{@properties['config/product_name']} Started on #{Time.now.to_s}"
   
       if (Config::CONFIG['os_host'] == 'mswin32')  
         # --- BEGIN HACK (part 1) ---  
         # the following code is a temporary workaround for a problem using FXRuby in  
         # an mswin build of Ruby. This should be removed once that problem has been fixed.  
         
         # default to a do-nothing message pump  
         @bus["/system/ui/messagepump"].set_proc do sleep(0.5) end  
         # --- END HACK ---  
       end  
   
55        @bus["/system/state/all_plugins_loaded"].data = false;        @bus["/system/state/all_plugins_loaded"].data = false;
56        load_plugins        load_plugins
57        @bus["/system/state/all_plugins_loaded"].data = true;        @bus["/system/state/all_plugins_loaded"].data = true;
58          tui = Thread.new {
59        if (Config::CONFIG['os_host'] == 'mswin32')          @bus["/system/ui/messagepump"].call()
60          # --- BEGIN HACK (part 2) ---        }
61          while true do        tui.join
           @bus["/system/ui/messagepump"].call()  
           sleep(0.1)  
         end  
         # --- END HACK ---  
       else  
         tui = Thread.new {  
           @bus["/system/ui/messagepump"].call()  
         }  
         tui.join  
       end  
   
62      end      end
63            
64      ##      ##

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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