X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b011451bd5444fd5aea14811ef7a172a249c4ef..520e470fdd0daef09c77938db642e4583933c90d:/src/gtk/notebook.cpp diff --git a/src/gtk/notebook.cpp b/src/gtk/notebook.cpp index 2794bebe86..d9b2bbc090 100644 --- a/src/gtk/notebook.cpp +++ b/src/gtk/notebook.cpp @@ -62,12 +62,11 @@ static void gtk_notebook_page_change_callback(GtkNotebook *WXUNUSED(widget), int old = notebook->GetSelection(); // TODO: emulate PAGE_CHANGING event - wxNotebookEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, - notebook->GetId(), - nPage, - old); + + wxNotebookEvent event( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, + notebook->GetId(), nPage, old ); event.SetEventObject( notebook ); - notebook->ProcessEvent( event ); + notebook->GetEventHandler()->ProcessEvent( event ); } //-----------------------------------------------------------------------------