Author: manolo
Date: 2013-04-15 04:42:16 -0700 (Mon, 15 Apr 2013)
New Revision: 9879
Log:
Added call of fl_open_callback() by the editor demo.
Modified:
branches/branch-3.0/test/editor.cxx
Modified: branches/branch-3.0/test/editor.cxx
===================================================================
--- branches/branch-3.0/test/editor.cxx 2013-04-15 11:00:24 UTC (rev 9878)
+++ branches/branch-3.0/test/editor.cxx 2013-04-15 11:42:16 UTC (rev 9879)
@@ -798,16 +798,22 @@
return w;
}
+void cb(const char *fname) {
+ load_file(fname, -1);
+}
+
int main(int argc, char **argv) {
textbuf = new fltk3::TextBuffer;
//textbuf->transcoding_warning_action = NULL;
style_init();
-
+ fl_open_callback(cb);
+
fltk3::Window* window = new_view();
window->show(1, argv);
-
+#ifndef __APPLE__
if (argc > 1) load_file(argv[1], -1);
+#endif
return fltk3::run();
}
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit