From b5fb9bd8d63b96e97903118154ccc34c882827e4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 21 Sep 2020 15:34:55 +0200 Subject: [PATCH] Compile radio button group navigation functions on all platforms Previously they were only used, and compiled, on the platforms without wxHAS_NATIVE_TAB_TRAVERSAL, i.e. were not compiled at all in wxGTK, but we now need them everywhere as they're used to implement public API. --- src/common/containr.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/common/containr.cpp b/src/common/containr.cpp index 0ab07916f1..93245b674d 100644 --- a/src/common/containr.cpp +++ b/src/common/containr.cpp @@ -233,9 +233,12 @@ void wxControlContainer::SetLastFocus(wxWindow *win) } } +#endif // !wxHAS_NATIVE_TAB_TRAVERSAL + // -------------------------------------------------------------------- // The following four functions are used to find other radio buttons -// within the same group. Used by wxSetFocusToChild +// within the same group. Used by wxSetFocusToChild() and to implement +// wxRadioButtonBase public API. // -------------------------------------------------------------------- #if wxUSE_RADIOBTN @@ -357,6 +360,8 @@ using namespace wxPrivate; #endif // wxUSE_RADIOBTN +#ifndef wxHAS_NATIVE_TAB_TRAVERSAL + // ---------------------------------------------------------------------------- // Keyboard handling - this is the place where the TAB traversal logic is // implemented. As this code is common to all ports, this ensures consistent