summaryrefslogtreecommitdiff
path: root/src/Fl_add_idle.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-11-16 01:58:54 +0100
committerGitHub <noreply@github.com>2025-11-16 01:58:54 +0100
commit646bd5576497078f327f931ac5b5452d24866d2a (patch)
tree7a6060bc43cd9443639e8f3069151e224f918aa9 /src/Fl_add_idle.cxx
parent9afe9400bd8ce79f1c96b856539d91887e0d2bb1 (diff)
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.
Diffstat (limited to 'src/Fl_add_idle.cxx')
-rw-r--r--src/Fl_add_idle.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_add_idle.cxx b/src/Fl_add_idle.cxx
index 1c3687173..fd2ab36a4 100644
--- a/src/Fl_add_idle.cxx
+++ b/src/Fl_add_idle.cxx
@@ -18,7 +18,7 @@
// Replaces the older set_idle() call which has been renamed to set_idle_(),
// is now private in class Fl::, and is used to implement this.
-#include <FL/Fl.H>
+#include "Fl_Private.H"
struct idle_cb {
void (*cb)(void*);
@@ -83,7 +83,7 @@ void Fl::add_idle(Fl_Idle_Handler cb, void* data) {
} else {
first = last = p;
p->next = p;
- set_idle_(call_idle);
+ Private::set_idle_(call_idle);
}
}
@@ -161,7 +161,7 @@ void Fl::remove_idle(Fl_Idle_Handler cb, void* data) {
}
if (l == p) { // only one
first = last = 0;
- set_idle_(0);
+ Private::set_idle_(0);
} else {
last = l;
first = l->next = p->next;