]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/notebook.cpp
no message
[wxWidgets.git] / src / gtk / notebook.cpp
index 2794bebe86262040ebd5ab636375a3f50987a124..d9b2bbc0909d8283521b689269e8d5b6132a5f5e 100644 (file)
@@ -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 );
 }
 
 //-----------------------------------------------------------------------------