diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-07-15 09:48:09 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-07-15 09:48:09 +0000 |
| commit | 59b74e9fcb596ddae928acf383b695026ed20aa5 (patch) | |
| tree | 5f2fc138708b99ed6fd27570a25b5ee4d6e48f43 /fluid | |
| parent | 770147baf66dc014f20218531e1c3b600ae73cbf (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
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/fluid.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
