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:
@@ -91,8 +91,13 @@ void wxPanel::OnNavigationKey(wxNavigationKeyEvent& event)
|
|||||||
// first of all, find the window which currently has the focus
|
// first of all, find the window which currently has the focus
|
||||||
wxNode *node = GetChildren()->First();
|
wxNode *node = GetChildren()->First();
|
||||||
wxWindow *winFocus = event.GetCurrentFocus();
|
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 ) {
|
while ( node != NULL ) {
|
||||||
if ( node->Data() == winFocus )
|
if ( node->Data() == winFocus )
|
||||||
break;
|
break;
|
||||||
@@ -155,4 +160,4 @@ bool wxPanel::SetFocusToNextChild(wxNode *node, bool bForward)
|
|||||||
#undef WIN
|
#undef WIN
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user