Author: ianmacarthur
Date: 2010-12-20 05:57:11 -0800 (Mon, 20 Dec 2010)
New Revision: 8075
Log:
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.
Modified:
branches/branch-1.3/test/editor.cxx
Modified: branches/branch-1.3/test/editor.cxx
===================================================================
--- branches/branch-1.3/test/editor.cxx 2010-12-20 13:45:26 UTC (rev 8074)
+++ branches/branch-1.3/test/editor.cxx 2010-12-20 13:57:11 UTC (rev 8075)
@@ -52,8 +52,8 @@
#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] = "";
char title[FL_PATH_MAX];
@@ -389,7 +389,7 @@
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 @@
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 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 @@
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);
}
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit