diff options
| author | Albrecht Schlosser <fltk@aljus.de> | 2024-06-21 17:35:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-21 17:35:01 +0200 |
| commit | 456d53c403c478dd7a5eaf08abead6a7ac2808a0 (patch) | |
| tree | c5a34bce6f19cbf463a50d2c7dbafcad175759ba /FL/Fl.H | |
| parent | 5ee1c0c9df6fd88e420857a0fbf0165e530413d7 (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/Fl.H')
| -rw-r--r-- | FL/Fl.H | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |
