Changeset 482

Show
Ignore:
Timestamp:
03/12/2008 23:54:42 (5 months ago)
Author:
why
Message:
  • lib/shoes/image.rb: adding the old remote_image code from the list and merging it into the normal image method.
Location:
trunk
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/shoes.rb

    r463 r482  
    1111require 'shoes/shy' 
    1212if Object.const_defined? :Shoes 
     13  require 'shoes/image' 
    1314  require 'shoes/cache' 
    1415  require 'shoes/help' 
  • trunk/lib/shoes/cache.rb

    r476 r482  
    1919SITE_LIB_DIR = File.join(LIB_DIR, '+lib') 
    2020GEM_DIR = File.join(LIB_DIR, '+gem') 
    21  
    22 mkdir_p(LIB_DIR) 
     21CACHE_DIR = File.join(LIB_DIR, '+cache') 
     22 
     23mkdir_p(CACHE_DIR) 
    2324$:.unshift SITE_LIB_DIR 
    2425$:.unshift GEM_DIR 
     
    6364  $:.unshift path 
    6465end 
     66def setup_gems_app 
     67  unless Shoes === Gem::DefaultUserInteraction.ui 
     68    app =  
     69      Shoes.app :width => 370, :height => 148, :resizable => false do 
     70        background "#9CF" 
     71        image "#{DIR}/static/shoes-icon-blue.png", :top => 10, :right => 20 
     72        stack :margin => 18 do 
     73          title "", :size => 12, :weight => "bold", :margin => 0 
     74          para "", :size => 10, :margin => 0, :margin_top => 8, :width => 220 
     75          progress :width => 1.0, :top => 80 
     76        end 
     77      end 
     78    Gem::DefaultUserInteraction.ui = Gem::ShoesFace.new(app) 
     79  end 
     80  Gem::DefaultUserInteraction.ui 
     81end 
    6582def fetch_gems(*gems, &blk) 
    66   ui = Gem::DefaultUserInteraction.ui 
     83  ui = setup_gems_app 
    6784  count, total = 0, gems.length 
    6885  ui.progress count, total 
  • trunk/shoes/ruby.h

    r473 r482  
    136136  f("border", border, -1); \ 
    137137  f("video", video, -1); \ 
    138   f("image", image, -1); \ 
     138  f("image_file", image, -1); \ 
    139139  f("imagesize", imagesize, 1); \ 
    140140  f("animate", animate, -1); \