]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/panelg.cpp
Changed name of controls sample.
[wxWidgets.git] / 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
+}