summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-07-15 09:48:09 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-07-15 09:48:09 +0000
commit59b74e9fcb596ddae928acf383b695026ed20aa5 (patch)
tree5f2fc138708b99ed6fd27570a25b5ee4d6e48f43
parent770147baf66dc014f20218531e1c3b600ae73cbf (diff)
If starting Fluid with the -c (compile only) option, Fluid should not require a connection to the X11 Display anymore, allowing fluid to create code on head-less terminals.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4422 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES2
-rw-r--r--fluid/fluid.cxx3
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 198e46f4b..770f8b62b 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,8 @@ CHANGES IN FLTK 1.1.7
- Documentation fixes (STR #648, STR #692, STR #730, STR
#744, STR #745)
+ - Fluid should not open the Display connection anymore if
+ creating code only (STR #904)
- Improved hidden copy / ctor implementation (STR #860)
- Increased matrix stack depth and added over/underfolw error
(STR #924)
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx
index 3aa85b048..d6af4db2b 100644
--- a/fluid/fluid.cxx
+++ b/fluid/fluid.cxx
@@ -1649,6 +1649,9 @@ Fl_Menu_Item Main_Menu[] = {
extern void fill_in_New_Menu();
void scheme_cb(Fl_Choice *, void *) {
+ if (compile_only)
+ return;
+
switch (scheme_choice->value()) {
case 0 : // Default
Fl::scheme(NULL);