summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorAlbrecht Schlosser <fltk@aljus.de>2024-06-21 17:35:01 +0200
committerGitHub <noreply@github.com>2024-06-21 17:35:01 +0200
commit456d53c403c478dd7a5eaf08abead6a7ac2808a0 (patch)
treec5a34bce6f19cbf463a50d2c7dbafcad175759ba /FL
parent5ee1c0c9df6fd88e420857a0fbf0165e530413d7 (diff)
Add Fl::remove_next_timeout(...) to remove only one timeout (#992)
This method also returns the data pointer of the removed timeout. This new method is generally useful for user code and particularly necessary to fix issue #991. Co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl.H1
1 files changed, 1 insertions, 0 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index fef27fa93..c855eb754 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -479,6 +479,7 @@ public:
static void repeat_timeout(double t, Fl_Timeout_Handler cb, void *data = 0);
static int has_timeout(Fl_Timeout_Handler cb, void *data = 0);
static void remove_timeout(Fl_Timeout_Handler cb, void *data = 0);
+ static int remove_next_timeout(Fl_Timeout_Handler cb, void *data = 0, void **data_return = 0);
static void add_check(Fl_Timeout_Handler, void* = 0);
static int has_check(Fl_Timeout_Handler, void* = 0);