Changeset 445
- Timestamp:
- 03/04/2008 00:56:10 (6 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 modified
-
Makefile (modified) (1 diff)
-
Rakefile (modified) (2 diffs)
-
platform/nix (added)
-
platform/nix/shoes.launch (added)
-
shoes/app.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r418 r445 60 60 61 61 dist/shoes.launch: dist/shoes-bin 62 @echo 'APPPATH="$${0%/*}"' > dist/shoes.launch 63 @echo 'LD_LIBRARY_PATH="$$APPPATH/../lib/shoes" $$APPPATH/../lib/shoes/shoes-bin $$@' >> dist/shoes.launch 62 @cp platform/nix/shoes.launch dist/ 64 63 @chmod 755 dist/shoes.launch 65 64 -
trunk/Rakefile
r437 r445 58 58 File.open(before) do |b| 59 59 b.each do |line| 60 a << line.gsub(reg) { reg2.gsub(%r!\\1!, Object.const_get($1)) } 60 a << line.gsub(reg) do 61 reg2.gsub(%r!\\1!, Object.const_get($1)) if reg2.include? '\1' 62 reg2 63 end 61 64 end 62 65 end … … 334 337 sh "#{CC} -Ldist -o #{bin} bin/main.o #{LINUX_LIBS} -lshoes #{Config::CONFIG['LDFLAGS']}" 335 338 if PLATFORM !~ /darwin/ 336 sh %{echo 'APPPATH="${0%/*}"' > #{t.name}} 337 sh %{echo 'LD_LIBRARY_PATH=$APPPATH $APPPATH/#{File.basename(bin)} $@' >> #{t.name}} 339 rewrite "platform/nix/shoes.launch", t.name, %r!/shoes-bin!, "/#{NAME}-bin" 338 340 chmod 0755, t.name 339 341 end -
trunk/shoes/app.c
r444 r445 1472 1472 1473 1473 #ifdef SHOES_GTK 1474 char icon_path[SHOES_BUFSIZE]; 1474 1475 shoes_app_gtk *gk = &app->os; 1475 1476 shoes_slot_gtk *gs = &app->slot; 1476 1477 1477 gtk_window_set_default_icon_from_file("static/shoes-icon.png", NULL); 1478 sprintf(icon_path, "%s/static/shoes-icon.png", shoes_world->path); 1479 gtk_window_set_default_icon_from_file(icon_path, NULL); 1478 1480 gk->window = gtk_window_new (GTK_WINDOW_TOPLEVEL); 1479 1481 if (!app->resizable)
