From 646bd5576497078f327f931ac5b5452d24866d2a Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 16 Nov 2025 01:58:54 +0100 Subject: Refactor large static class Fl into an expandable namespace Fl (#1325) * Change class Fl into namespace Fl. * Untangle Fl namespace into themed headers. * cut line count of FL/Fl.H in half * FL/core subdirectory now holds short headers grouped by functionality. --- src/Fl_Window.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Fl_Window.cxx') diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index d112b89f9..e60a68eaa 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -173,8 +173,10 @@ void Fl::default_atclose(Fl_Window* window, void* v) { window->hide(); Fl_Widget::default_callback(window, v); // put on Fl::read_queue() } + /** Back compatibility: default window callback handler \see Fl::set_atclose() */ -void (*Fl::atclose)(Fl_Window*, void*) = default_atclose; +void (*Fl::atclose)(Fl_Window*, void*) = Fl::default_atclose; + /** Back compatibility: Sets the default callback v for win to call on close event */ void Fl_Window::default_callback(Fl_Window* win, void* v) { Fl::atclose(win, v); -- cgit v1.2.3