diff options
| author | Ian MacArthur <imacarthur@gmail.com> | 2010-12-20 13:57:11 +0000 |
|---|---|---|
| committer | Ian MacArthur <imacarthur@gmail.com> | 2010-12-20 13:57:11 +0000 |
| commit | 1e9e3970bde0ddc0ac503320618b5bc21acc5e05 (patch) | |
| tree | a9043e30cce382faf5e4fc842bfbac8e452f1c51 /test/editor.cxx | |
| parent | 485bca3db9299d7e44f44a1ea49b5a73b9366c3d (diff) | |
File was changed to use FL_PATH_MAX so needed to have <FL/filename.H> added to the include files so that it would compile on WIN32 hosts.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8075 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/editor.cxx')
| -rw-r--r-- | test/editor.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/editor.cxx b/test/editor.cxx index f74dd8163..74cfbef37 100644 --- a/test/editor.cxx +++ b/test/editor.cxx @@ -52,7 +52,7 @@ #include <FL/Fl_Return_Button.H> #include <FL/Fl_Text_Buffer.H> #include <FL/Fl_Text_Editor.H> - +#include <FL/filename.H> int changed = 0; char filename[FL_PATH_MAX] = ""; @@ -389,7 +389,7 @@ style_update(int pos, // I - Position of update style_parse(text, style, end - start); -// printf("new style = \"%s\", new last='%c'...\n", +// printf("new style = \"%s\", new last='%c'...\n", // style, style[end - start - 1]); stylebuf->replace(start, end, style); @@ -397,7 +397,7 @@ style_update(int pos, // I - Position of update if (start==end || last != style[end - start - 1]) { // printf("Recalculate the rest of the buffer style\n"); - // Either the user deleted some text, or the last character + // Either the user deleted some text, or the last character // on the line changed styles, so reparse the // remainder of the buffer... free(text); @@ -599,7 +599,7 @@ void open_cb(Fl_Widget*, void*) { } -void insert_cb(Fl_Widget*, void *v) { +void insert_cb(Fl_Widget*, void *v) { Fl_Native_File_Chooser fnfc; fnfc.title("Insert file"); fnfc.type(Fl_Native_File_Chooser::BROWSE_FILE); @@ -628,7 +628,7 @@ void close_cb(Fl_Widget*, void* v) { textbuf->remove_modify_callback(style_update, w->editor); textbuf->remove_modify_callback(changed_cb, w); Fl::delete_widget(w); - + num_windows--; if (!num_windows) exit(0); } |
