From bc30e43495d20fe3f9f45c5df2fe6d545ffe066d Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Mon, 16 Sep 2024 15:18:04 +0100 Subject: [PATCH] Fix version checks for property types The wxWidgets commits that affect these types have not been released in any 3.2 releases since 3.2.4, so it seems like they will only be in 3.3. These are the relevant wxWidgets commits: - https://github.com/wxWidgets/wxWidgets/commit/159c3b1c6d3e1dc3686a636a9be7f6ef37b247c5 - https://github.com/wxWidgets/wxWidgets/commit/f1273ce152ff5c3d63b5070b463132cbb14979b4 --- src/wx/widgets/PGPropertyValuesFlags.hx | 2 +- src/wx/widgets/styles/PropertyGridAttributes.hx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wx/widgets/PGPropertyValuesFlags.hx b/src/wx/widgets/PGPropertyValuesFlags.hx index 116aa5fa..cc5f49d6 100644 --- a/src/wx/widgets/PGPropertyValuesFlags.hx +++ b/src/wx/widgets/PGPropertyValuesFlags.hx @@ -1,6 +1,6 @@ package wx.widgets; -#if (wxWidgetsVersion > version("3.2.4")) +#if (wxWidgetsVersion > version("3.3.0")) @:include("wx/propgrid/propgriddefs.h") extern enum abstract PGPropertyValuesFlags(PGPropertyValuesFlagsImpl) { diff --git a/src/wx/widgets/styles/PropertyGridAttributes.hx b/src/wx/widgets/styles/PropertyGridAttributes.hx index 61376017..cfbea7c3 100644 --- a/src/wx/widgets/styles/PropertyGridAttributes.hx +++ b/src/wx/widgets/styles/PropertyGridAttributes.hx @@ -3,7 +3,7 @@ package wx.widgets.styles; // https://docs.wxwidgets.org/latest/property_8h.html#propgrid_property_attributes @:headerCode("#include ") class PropertyGridAttributes { - #if (wxWidgetsVersion < version("3.2.3")) + #if (wxWidgetsVersion < version("3.3.0")) public static var ATTR_HINT:String = untyped __cpp__("wxS(\"Hint\")"); public static var ATTR_MAX:String = untyped __cpp__("wxS(\"Max\")"); public static var ATTR_MIN:String = untyped __cpp__("wxS(\"Min\")");