Changeset 444

Show
Ignore:
Timestamp:
03/04/2008 00:29:19 (6 months ago)
Author:
why
Message:
  • shoes/app.c: remove timers when moving to a new url.
  • samples/bounce.rb: use new path to image.
Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/samples/bounce.rb

    r236 r444  
    77 
    88  nostroke 
    9   @icon = image "static/shoes-icon.png", :left => 100, :top => 100 do 
     9  @icon = image "../static/shoes-icon.png", :left => 100, :top => 100 do 
    1010    alert "You're soooo quick." 
    1111  end 
  • trunk/shoes/app.c

    r443 r444  
    6969// list.  Returns 1 if all windows are gone. 
    7070// 
     71static void 
     72shoes_app_clear(shoes_app *app) 
     73{ 
     74  shoes_ele_remove_all(app->timers); 
     75  shoes_canvas_clear(app->canvas); 
     76} 
     77 
    7178static int 
    7279shoes_app_remove(shoes_app *app) 
    7380{ 
    74   shoes_ele_remove_all(app->timers); 
     81  shoes_app_clear(app); 
    7582  rb_ary_delete(shoes_world->apps, app->self); 
    7683  return (RARRAY_LEN(shoes_world->apps) == 0); 
     
    17821789  } 
    17831790 
    1784   shoes_canvas_clear(app->canvas); 
     1791  shoes_app_clear(app); 
    17851792  shoes_app_reset_styles(app); 
    17861793  meth = rb_funcall(cShoes, s_run, 1, app->location = rb_str_new2(path)); 
     
    19731980shoes_app_close_window(shoes_app *app) 
    19741981{ 
    1975   shoes_ele_remove_all(app->timers); 
    19761982#ifdef SHOES_GTK 
    19771983  shoes_app_gtk_quit(app->os.window, NULL, (gpointer)app);