From 5cafae4a3a4b729e42dcc05a0eba07ab5c3e3d21 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 28 Jul 2024 16:32:36 +0200 Subject: Remove FL_AUTO_DELETE_EVENT feature It's not ripe for release yet and possibly not even needed according to pyFLTK maintainers. Added: 8cffbd694106a2371d297caa008f2290185fed2f --- FL/Enumerations.H | 11 ++--------- FL/names.h | 5 ++--- 2 files changed, 4 insertions(+), 12 deletions(-) (limited to 'FL') diff --git a/FL/Enumerations.H b/FL/Enumerations.H index 339851d81..1beb450e5 100644 --- a/FL/Enumerations.H +++ b/FL/Enumerations.H @@ -407,15 +407,8 @@ enum Fl_Event { // events /** A zoom event (ctrl/+/-/0/ or cmd/+/-/0/) was processed. Use Fl::add_handler() to be notified of this event. */ - FL_ZOOM_EVENT = 27, - /** This event is sent if the parent widget is deleted and the parent is about - to delete this widget as well. Returning the default value 0 will give the - parent permission to call the destructor of this widget. Returning 1 will - preserve this widget, but still remove it from the widget hierarchy. - \see Fl_Group::clear() - */ - FL_AUTO_DELETE_EVENT = 28 -// DEV NOTE: Keep this list in sync with FL/names.h + FL_ZOOM_EVENT = 27 + // DEV NOTE: Keep this list in sync with FL/names.h }; /** \name When Conditions */ diff --git a/FL/names.h b/FL/names.h index 4f90c3ec1..15a491f84 100644 --- a/FL/names.h +++ b/FL/names.h @@ -73,10 +73,9 @@ const char * const fl_eventnames[] = "FL_FULLSCREEN", "FL_ZOOM_GESTURE", "FL_ZOOM_EVENT", - "FL_AUTO_DELETE_EVENT", + "FL_EVENT_28", // not yet defined, just in case it /will/ be defined ... "FL_EVENT_29", // not yet defined, just in case it /will/ be defined ... - "FL_EVENT_30", // not yet defined, just in case it /will/ be defined ... - "FL_EVENT_31" // not yet defined, just in case it /will/ be defined ... + "FL_EVENT_30" // not yet defined, just in case it /will/ be defined ... }; /** -- cgit v1.2.3