]> git.saurik.com Git - wxWidgets.git/commitdiff
wxWindow::FindFocus() doesn't exist in wxGTK - #ifdef'd out
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Jul 1998 12:26:38 +0000 (12:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Jul 1998 12:26:38 +0000 (12:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/panelg.cpp

index 809cb7c569b8a92ab59fba655d0e58b79539b393..b0f95fd82c5f7bdb6cd2ef3ef99df0046b0ef708 100644 (file)
@@ -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
+}