From 456d53c403c478dd7a5eaf08abead6a7ac2808a0 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 21 Jun 2024 17:35:01 +0200 Subject: 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 --- FL/Fl.H | 1 + 1 file changed, 1 insertion(+) (limited to 'FL') 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); -- cgit v1.2.3