+//-----------------------------------------------------------------------------
+// GTK callbacks
+//-----------------------------------------------------------------------------
+
+// page change callback
+static void gtk_notebook_page_change_callback(GtkNotebook *widget,
+ GtkNotebookPage *page,
+ gint nPage,
+ gpointer data)
+{
+ wxNotebook *notebook = (wxNotebook *)data;
+
+ int nOld = notebook->GetSelection();
+
+ // TODO: emulate PAGE_CHANGING event
+ wxNotebookEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
+ notebook->GetId(),
+ nPage,
+ nOld);
+ event.SetEventObject(notebook);
+ notebook->ProcessEvent(event);
+}
+