summaryrefslogtreecommitdiff
path: root/fluid/Fl_Window_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2022-01-08 21:55:19 +0100
committerMatthias Melcher <github@matthiasm.com>2022-01-08 22:12:41 +0100
commit42a93eb8dec6e3c637442e23e156b3f72c7f8ca7 (patch)
treed3edd493518ff7a78a2e733dadb98d07a1fec753 /fluid/Fl_Window_Type.cxx
parent9a2b3ef798d0baf4228b69b941b7cdb25aca6ab6 (diff)
avoid early include of Fl.H option
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
-rw-r--r--fluid/Fl_Window_Type.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx
index ddc94fc9c..d5da99716 100644
--- a/fluid/Fl_Window_Type.cxx
+++ b/fluid/Fl_Window_Type.cxx
@@ -45,6 +45,7 @@
int include_H_from_C = 1;
int use_FL_COMMAND = 0;
int utf8_in_src = 0;
+int avoid_early_includes = 0;
extern Fl_Preferences fluid_prefs;
@@ -194,6 +195,7 @@ void show_project_cb(Fl_Widget *, void *) {
include_H_from_C_button->value(include_H_from_C);
use_FL_COMMAND_button->value(use_FL_COMMAND);
utf8_in_src_button->value(utf8_in_src);
+ avoid_early_includes_button->value(avoid_early_includes);
header_file_input->value(header_file_name);
code_file_input->value(code_file_name);
i18n_type_chooser->value(i18n_type);
@@ -292,6 +294,13 @@ void utf8_in_src_cb(Fl_Check_Button *b, void*) {
}
}
+void avoid_early_includes_cb(Fl_Check_Button *b, void*) {
+ if (avoid_early_includes != b->value()) {
+ set_modflag(1);
+ avoid_early_includes = b->value();
+ }
+}
+
////////////////////////////////////////////////////////////////
Fl_Menu_Item window_type_menu[] = {