From: Vadim Zeitlin Date: Thu, 9 Jul 1998 12:26:38 +0000 (+0000) Subject: wxWindow::FindFocus() doesn't exist in wxGTK - #ifdef'd out X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6e4739a0e1e6b22dc33e5974cea0d5a4df89e815 wxWindow::FindFocus() doesn't exist in wxGTK - #ifdef'd out git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/panelg.cpp b/src/generic/panelg.cpp index 809cb7c569..b0f95fd82c 100644 --- a/src/generic/panelg.cpp +++ b/src/generic/panelg.cpp @@ -91,8 +91,13 @@ void wxPanel::OnNavigationKey(wxNavigationKeyEvent& event) // first of all, find the window which currently has the focus wxNode *node = GetChildren()->First(); wxWindow *winFocus = event.GetCurrentFocus(); - if ( winFocus == NULL ) - winFocus = wxWindow::FindFocus(); + + // @@@ no FindFocus() in wxGTK + #ifndef __GTK__ + if ( winFocus == NULL ) + winFocus = wxWindow::FindFocus(); + #endif + while ( node != NULL ) { if ( node->Data() == winFocus ) break; @@ -155,4 +160,4 @@ bool wxPanel::SetFocusToNextChild(wxNode *node, bool bForward) #undef WIN return TRUE; -} \ No newline at end of file +}