From 59b74e9fcb596ddae928acf383b695026ed20aa5 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 15 Jul 2005 09:48:09 +0000 Subject: [PATCH] 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 --- CHANGES | 2 ++ fluid/fluid.cxx | 3 +++ 2 files changed, 5 insertions(+) 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);