DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2261
Version: 1.3-current
Yet another patch, see attached file str_2261.patch.
This avoids creating some windows, reading the prefs, and building the
history of files in the menu. This also ought to speed up fluid -c a
little bit.
However, we still need the main window, although it will never be shown.
Maybe this one is better, because it won't make problems if we add some
other widgets that load fonts to these windows (and thus would need to
open the display).
Still needs to be checked and tested by someone who's more familiar with
fluid code.
Link: http://www.fltk.org/str.php?L2261
Version: 1.3-current
Index: fluid/fluid.cxx
===================================================================
--- fluid/fluid.cxx (revision 6895)
+++ fluid/fluid.cxx (working copy)
@@ -1751,19 +1751,20 @@
}
void make_main_window() {
- fluid_prefs.get("snap", snap, 1);
- fluid_prefs.get("gridx", gridx, 5);
- fluid_prefs.get("gridy", gridy, 5);
- fluid_prefs.get("show_guides", show_guides, 0);
- fluid_prefs.get("widget_size", Fl_Widget_Type::default_size, 14);
- fluid_prefs.get("show_comments", show_comments, 1);
+ if (!compile_only) {
+ fluid_prefs.get("snap", snap, 1);
+ fluid_prefs.get("gridx", gridx, 5);
+ fluid_prefs.get("gridy", gridy, 5);
+ fluid_prefs.get("show_guides", show_guides, 0);
+ fluid_prefs.get("widget_size", Fl_Widget_Type::default_size, 14);
+ fluid_prefs.get("show_comments", show_comments, 1);
- load_history();
+ load_history();
+ make_layout_window();
+ make_settings_window();
+ make_shell_window();
+ }
- make_layout_window();
- make_settings_window();
- make_shell_window();
-
if (!main_window) {
Fl_Widget *o;
main_window = new Fl_Double_Window(WINWIDTH,WINHEIGHT,"fluid");
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs