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
This commit is contained in:
parent
0abbe29739
commit
6e4739a0e1
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user