X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c36c09cd5f591c3b047a7c7367e7ce91d069cdd..ed9add67fd103cca4b9040a1558ca06a0fc42c05:/src/generic/notebook.cpp?ds=sidebyside

diff --git a/src/generic/notebook.cpp b/src/generic/notebook.cpp
index 1d62732c1a..a77f340b2e 100644
--- a/src/generic/notebook.cpp
+++ b/src/generic/notebook.cpp
@@ -152,7 +152,7 @@ bool wxNotebook::Create(wxWindow *parent,
 
     if ( (style & wxBK_ALIGN_MASK) == wxBK_DEFAULT )
         style |= wxBK_TOP;
-    
+
     m_windowId = id == wxID_ANY ? NewControlId() : id;
 
     if (!wxControl::Create(parent, id, pos, size, style|wxNO_BORDER, wxDefaultValidator, name))
@@ -192,6 +192,12 @@ int wxNotebook::SetSelection(size_t nPage)
     return 0;
 }
 
+int wxNotebook::ChangeSelection(size_t nPage)
+{
+    // FIXME: currently it does generate events too
+    return SetSelection(nPage);
+}
+
 #if 0
 void wxNotebook::AdvanceSelection(bool bForward)
 {