FLTK logo

[master] 2059307 - github #328: temporarily disabling new project flags

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 2059307 - github #328: temporarily disabling new project flags "Matthias Melcher" Dec 15, 2021  
 
commit 20593074c685540567416ac3b23afab44db1460a
Author:     Matthias Melcher <git@matthiasm.com>
AuthorDate: Wed Dec 15 19:50:21 2021 +0100
Commit:     Matthias Melcher <github@matthiasm.com>
CommitDate: Wed Dec 15 20:19:33 2021 +0100

    github #328: temporarily disabling new project flags
    
    Project wide settings require a redesign.
    Temporarily disabled until I find a satisfying solution.

 fluid/file.cxx       | 8 +++++++-
 fluid/print_panel.fl | 6 ++----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git fluid/file.cxx fluid/file.cxx
index 1efbf64..95c0646 100644
--- fluid/file.cxx
+++ fluid/file.cxx
@@ -394,11 +394,15 @@ int write_file(const char *filename, int selected_only) {
         break;
     }
   }
-  shell_settings_write();
+
   if (!selected_only) {
     write_string("\nheader_name"); write_word(header_file_name);
     write_string("\ncode_name"); write_word(code_file_name);
 
+#if 0
+    // https://github.com/fltk/fltk/issues/328
+    // Project wide settings require a redesign.
+    shell_settings_write();
     if (shell_settings_windows.command) {
       write_string("\nwin_shell_cmd"); write_word(shell_settings_windows.command);
       write_string("\nwin_shell_flags"); write_string("%d", shell_settings_windows.flags);
@@ -411,7 +415,9 @@ int write_file(const char *filename, int selected_only) {
       write_string("\nmac_shell_cmd"); write_word(shell_settings_macos.command);
       write_string("\nmac_shell_flags"); write_string("%d", shell_settings_macos.flags);
     }
+#endif
   }
+
   for (Fl_Type *p = Fl_Type::first; p;) {
     if (!selected_only || p->selected) {
       p->write();
diff --git fluid/print_panel.fl fluid/print_panel.fl
index a576ca8..48cb43e 100644
--- fluid/print_panel.fl
+++ fluid/print_panel.fl
@@ -2,8 +2,6 @@
 version 1.0400
 header_name {.h}
 code_name {.cxx}
-mac_shell_cmd {echo "Fluid is nice"}
-mac_shell_flags 3
 comment {//
 // FLUID print panel for the Fast Light Tool Kit (FLTK).
 //
@@ -214,7 +212,7 @@ print_collate_group[1 - i]->hide();}
   Fl_Window print_properties_panel {
     label {Printer Properties}
     callback {print_properties_panel->hide();
-print_update_status();} selected
+print_update_status();}
     xywh {462 486 290 130} type Double modal visible
   } {
     Fl_Choice print_page_size {
@@ -330,7 +328,7 @@ if (defname[0]) {
 print_update_status();} {}
 }
 
-Function {print_update_status()} {open return_type void
+Function {print_update_status()} {open selected return_type void
 } {
   code {FILE *lpstat;
 char command[1024];
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.