git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@211
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// first of all, find the window which currently has the focus
wxNode *node = GetChildren()->First();
wxWindow *winFocus = event.GetCurrentFocus();
// 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;
while ( node != NULL ) {
if ( node->Data() == winFocus )
break;
-}
\ No newline at end of file