From 59b74e9fcb596ddae928acf383b695026ed20aa5 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 15 Jul 2005 09:48:09 +0000 Subject: 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 --- fluid/fluid.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fluid') 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); -- cgit v1.2.3