diff options
| -rw-r--r-- | FL/Fl_Window.H | 2 | ||||
| -rw-r--r-- | README.macOS.md | 2 | ||||
| -rw-r--r-- | fluid/alignment_panel.cxx | 8 | ||||
| -rw-r--r-- | fluid/function_panel.fl | 2 | ||||
| -rw-r--r-- | fluid/makedepend | 1 | ||||
| -rw-r--r-- | fluid/widget_panel.fl | 4 | ||||
| -rw-r--r-- | src/Fl_Native_File_Chooser_GTK.cxx | 2 | ||||
| -rw-r--r-- | src/Fl_compose.cxx | 4 | ||||
| -rw-r--r-- | test/preferences.fl | 6 | ||||
| -rw-r--r-- | test/unittest_fast_shapes.cxx | 2 |
10 files changed, 17 insertions, 16 deletions
diff --git a/FL/Fl_Window.H b/FL/Fl_Window.H index 9340ef629..544369160 100644 --- a/FL/Fl_Window.H +++ b/FL/Fl_Window.H @@ -530,7 +530,7 @@ public: only if these decoration elements are strictly X11-based. When that's not the case, decorated_h() returns the same value as h() and decorated_w() as w(), and FLTK cannot access window decorations. - + \note Under X11 again, the values returned by decorated_h() and decorated_w() may not be reliable <b> during a resize operation</b>. The size of decoration elements of a window is best computed when the window is first mapped. diff --git a/README.macOS.md b/README.macOS.md index 20a697e09..466c65aa2 100644 --- a/README.macOS.md +++ b/README.macOS.md @@ -42,7 +42,7 @@ _README.macOS.md - Building FLTK under Apple macOS_ ## Introduction FLTK supports macOS version 10.3 Panther and above. At the time of writing (Feb. 2022), -FLTK compiles and runs fine on the most recent macOS 12 Monterey for both Intel and +FLTK compiles and runs fine on the most recent macOS 12 Monterey for both Intel and the new M1 Apple Silicon (Arm) processors. FLTK 1.4 supports the following build environments on the macOS diff --git a/fluid/alignment_panel.cxx b/fluid/alignment_panel.cxx index 26a45c700..dd0dc4cb6 100644 --- a/fluid/alignment_panel.cxx +++ b/fluid/alignment_panel.cxx @@ -640,7 +640,7 @@ static void refreshUI() { static void readPrefs() { // read all preferences and refresh the GUI { - Fl_Preferences prefs(Fl_Preferences::SYSTEM, "fltk.org", "fltk"); + Fl_Preferences prefs(Fl_Preferences::SYSTEM_L, "fltk.org", "fltk"); Fl_Preferences opt_prefs(prefs, "options"); opt_prefs.get("ArrowFocus", opt[Fl::OPTION_ARROW_FOCUS][1], 2); opt_prefs.get("VisibleFocus", opt[Fl::OPTION_VISIBLE_FOCUS][1], 2); @@ -651,7 +651,7 @@ static void readPrefs() { opt_prefs.get("ShowZoomFactor", opt[Fl::OPTION_SHOW_SCALING ][1], 2); } { - Fl_Preferences prefs(Fl_Preferences::USER, "fltk.org", "fltk"); + Fl_Preferences prefs(Fl_Preferences::USER_L, "fltk.org", "fltk"); Fl_Preferences opt_prefs(prefs, "options"); opt_prefs.get("ArrowFocus", opt[Fl::OPTION_ARROW_FOCUS][0], 2); opt_prefs.get("VisibleFocus", opt[Fl::OPTION_VISIBLE_FOCUS][0], 2); @@ -670,7 +670,7 @@ static void readPrefs() { static void writePrefs() { // write all preferences using the array { - Fl_Preferences prefs(Fl_Preferences::SYSTEM, "fltk.org", "fltk"); + Fl_Preferences prefs(Fl_Preferences::SYSTEM_L, "fltk.org", "fltk"); Fl_Preferences opt_prefs(prefs, "options"); if (opt[Fl::OPTION_ARROW_FOCUS][1]==2) opt_prefs.deleteEntry("ArrowFocus"); else opt_prefs.set("ArrowFocus", opt[Fl::OPTION_ARROW_FOCUS][1]); @@ -688,7 +688,7 @@ static void writePrefs() { else opt_prefs.set("ShowZoomFactor", opt[Fl::OPTION_SHOW_SCALING][1]); } { - Fl_Preferences prefs(Fl_Preferences::USER, "fltk.org", "fltk"); + Fl_Preferences prefs(Fl_Preferences::USER_L, "fltk.org", "fltk"); Fl_Preferences opt_prefs(prefs, "options"); if (opt[Fl::OPTION_ARROW_FOCUS][0]==2) opt_prefs.deleteEntry("ArrowFocus"); else opt_prefs.set("ArrowFocus", opt[Fl::OPTION_ARROW_FOCUS][0]); diff --git a/fluid/function_panel.fl b/fluid/function_panel.fl index 831e8b91b..0186b9365 100644 --- a/fluid/function_panel.fl +++ b/fluid/function_panel.fl @@ -51,7 +51,7 @@ Function {make_function_panel()} {open } { Fl_Window function_panel { label {Function/Method Properties} open - xywh {540 418 343 232} type Double resizable modal visible + xywh {540 418 343 232} type Double hide resizable modal } { Fl_Group {} {open xywh {10 10 270 20} diff --git a/fluid/makedepend b/fluid/makedepend index 5789faac1..859b36681 100644 --- a/fluid/makedepend +++ b/fluid/makedepend @@ -1119,6 +1119,7 @@ Shortcut_Button.o: ../FL/Fl_Return_Button.H Shortcut_Button.o: ../FL/Fl_RGB_Image.H Shortcut_Button.o: ../FL/Fl_Scrollbar.H Shortcut_Button.o: ../FL/Fl_Slider.H +Shortcut_Button.o: ../FL/fl_string_functions.h Shortcut_Button.o: ../FL/Fl_Tabs.H Shortcut_Button.o: ../FL/Fl_Text_Buffer.H Shortcut_Button.o: ../FL/Fl_Text_Display.H diff --git a/fluid/widget_panel.fl b/fluid/widget_panel.fl index 3be7cd5c3..1f0b3b2ad 100644 --- a/fluid/widget_panel.fl +++ b/fluid/widget_panel.fl @@ -31,8 +31,8 @@ Function {make_widget_panel()} { } { Fl_Window {} { comment {Use a Double Window to avoid flickering.} open - xywh {500 209 420 400} type Double labelsize 11 align 80 resizable hotspot - code0 {o->size_range(o->w(), o->h());} size_range {420 400 0 0} visible + xywh {500 209 420 400} type Double labelsize 11 align 80 hide resizable hotspot + code0 {o->size_range(o->w(), o->h());} size_range {420 400 0 0} } { Fl_Tabs {} { callback {propagate_load((Fl_Group *)o,v);} open diff --git a/src/Fl_Native_File_Chooser_GTK.cxx b/src/Fl_Native_File_Chooser_GTK.cxx index 6358c5ace..07cc3ff7a 100644 --- a/src/Fl_Native_File_Chooser_GTK.cxx +++ b/src/Fl_Native_File_Chooser_GTK.cxx @@ -768,7 +768,7 @@ int Fl_GTK_Native_File_Chooser_Driver::fl_gtk_chooser_wrapper() fl_gtk_widget_show_now(gtkw_ptr); // map the GTK window on screen gboolean state = fl_gtk_file_chooser_get_show_hidden((GtkFileChooser *)gtkw_ptr); fl_gtk_toggle_button_set_active((GtkToggleButton *)show_hidden_button, state); - + Fl_Event_Dispatch old_dispatch = Fl::event_dispatch(); // prevent FLTK from processing any event Fl::event_dispatch(fnfc_dispatch); diff --git a/src/Fl_compose.cxx b/src/Fl_compose.cxx index 356823ee1..b83121467 100644 --- a/src/Fl_compose.cxx +++ b/src/Fl_compose.cxx @@ -40,7 +40,7 @@ int Fl::compose_state = 0; <p>If <i>false</i> is returned, the keys should be treated as function keys, and del is set to zero. You could insert the text anyways, if you don't know what else to do. - + <p>Text editing widgets can preferentially call fl_set_spot() to indicate the window coordinates of the bottom of the current insertion point and the line height. This way, auxiliary windows that help choosing among alternative characters @@ -63,7 +63,7 @@ int Fl::compose_state = 0; <p>Finally, text editing widgets should call <tt>set_flag(MAC_USE_ACCENTS_MENU);</tt> in their constructor if they want to use, on the macOS platform, the feature introduced with Mac OS 10.7 "Lion" where pressing and holding certain keys on the keyboard opens a diacritic marks popup window. - + \note For compatibility with FLTK 1.3, text editing widgets can call <tt>Fl::insertion_point_location(int x, int y, int height)</tt> and <tt>Fl::reset_marked_text()</tt> <u>only under the macOS platform</u> to indicate/reset the coordinates of the current insertion point. diff --git a/test/preferences.fl b/test/preferences.fl index ef2cc5d1a..681dc9c28 100644 --- a/test/preferences.fl +++ b/test/preferences.fl @@ -207,7 +207,7 @@ char buffer[80]; double doubleValue; char path[ FL_PATH_MAX ]; -Fl_Preferences::Root root = +Fl_Preferences::Root root = Fl_Preferences::filename(path, FL_PATH_MAX, Fl_Preferences::USER_L, project, application); if (root == Fl_Preferences::UNKNOWN_ROOT_TYPE) { printf("Location of future Preferences file not found.\\n"); @@ -225,8 +225,8 @@ Fl_Preferences app( Fl_Preferences::USER_L, project, application ); } else { printf("App Preferences file is actually located at:\\n%s\\n", path); } - - app.getUserdataPath( path, sizeof(path) ); + + app.getUserdataPath( path, sizeof(path) ); if (path[0]) { printf("Preferences user data directory is located at:\\n%s\\n", path); } else { diff --git a/test/unittest_fast_shapes.cxx b/test/unittest_fast_shapes.cxx index 644384f22..b49deb217 100644 --- a/test/unittest_fast_shapes.cxx +++ b/test/unittest_fast_shapes.cxx @@ -318,7 +318,7 @@ public: "If green pixels are missing, filled rectangles draw too big (see fl_rectf).\n\n" "If red pixels are showing, filled rectangles are drawn too small." ); - + b+=24; t = new Fl_Box(a, b, 26, 18, "2a"); t->box(FL_ROUNDED_BOX); t->color(FL_YELLOW); |
