summaryrefslogtreecommitdiff
path: root/test/demo.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-01-27 23:25:00 +0000
committerManolo Gouy <Manolo>2010-01-27 23:25:00 +0000
commitbbeead925957bb389ab8981244aa2b1fb7561b47 (patch)
tree587bd46d75f1db451eecf3693feb1389b6239b19 /test/demo.cxx
parent6fe1ac09f45c8d2c389c3761cedaadc43e7cc4e3 (diff)
minor changes so all demos work under Xcode.
Modified files are: - test/demo.cxx - test/demo.menu - test/colbrowser.cxx git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/demo.cxx')
-rw-r--r--test/demo.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/demo.cxx b/test/demo.cxx
index 442c945dd..69a853523 100644
--- a/test/demo.cxx
+++ b/test/demo.cxx
@@ -283,11 +283,14 @@ void dobut(Fl_Widget *, long arg)
if (arg) {
*arg = 0;
if (strcmp(cmd, "../fluid/fluid")==0)
- sprintf(command, "open ../../../Fluid.app --args %s", arg+1);
+// sprintf(command, "open ../../../Fluid.app --args %s", arg+1);
+ sprintf(command, "../../../Fluid.app/Contents/MacOS/Fluid ../../../../../../../test/%s", arg+1);
else
- sprintf(command, "open ../../../%s.app --args %s", cmd, arg+1);
+// sprintf(command, "open ../../../%s.app --args %s", cmd, arg+1);
+ sprintf(command, "../../../%s.app/Contents/MacOS/%s ../../../../../../../test/%s", cmd, cmd, arg+1);
} else {
- sprintf(command, "open ../../../%s.app", cmd);
+// sprintf(command, "open ../../../%s.app", cmd);
+ sprintf(command, "../../../%s.app/Contents/MacOS/%s", cmd, cmd);
}
// puts(command);
system(command);