mirror of
https://github.com/fltk/fltk.git
synced 2026-05-22 23:37:02 +08:00
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
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ main(int argc, char *argv[])
|
||||
create_form_cl();
|
||||
|
||||
#ifdef USING_XCODE
|
||||
strcpy(dbname, "../../../../test/rgb.txt");
|
||||
strcpy(dbname, "../../../../../../../test/rgb.txt");
|
||||
#else
|
||||
strcpy(dbname, "rgb.txt");
|
||||
#endif
|
||||
|
||||
+6
-3
@@ -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);
|
||||
|
||||
+1
-1
@@ -66,7 +66,7 @@
|
||||
@e:Sudoku:sudoku
|
||||
|
||||
@main:Other\nTests:@o
|
||||
@o:Color Choosers:color_chooser r
|
||||
@o:Color Choosers:color_chooser
|
||||
@o:File Chooser:file_chooser
|
||||
@o:Native File Chooser:native-filechooser
|
||||
@o:Font Tests:@of
|
||||
|
||||
Reference in New Issue
Block a user