]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/notebook.cpp
oops, a stray C++ comment
[wxWidgets.git] / src / gtk1 / notebook.cpp
index 2d4ed460a5dbbd6bb526cdf38e0d820e90681aa8..7744b3e1c367739a096fb92b304cb8b6fd94bf25 100644 (file)
@@ -357,6 +357,10 @@ int wxNotebook::SetSelection( int page )
     int selOld = GetSelection();
 
     gtk_notebook_set_page( GTK_NOTEBOOK(m_widget), page );
+    
+    wxGtkNotebookPage* g_page = GetNotebookPage( page );
+    if (g_page->m_client) 
+        g_page->m_client->SetFocus();
 
     return selOld;
 }