From cbc3b98b2bab07da21ad03a73bda933da525a461 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Mon, 11 Feb 2008 07:29:43 +0000 Subject: [PATCH] When Cocoa sends [tabView:didSelectTabViewItem:] create a page changed event instead of a page changing event and actually send it. Copyright 2008 Software 2000 Ltd. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/notebook.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cocoa/notebook.mm b/src/cocoa/notebook.mm index e4479d02c0..811ca45881 100644 --- a/src/cocoa/notebook.mm +++ b/src/cocoa/notebook.mm @@ -315,9 +315,10 @@ int wxNotebook::GetSelection() const void wxNotebook::CocoaDelegate_tabView_didSelectTabViewItem(WX_NSTabViewItem tabViewItem) { // FIXME: oldSel probably == newSel - wxNotebookEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, GetId(), + wxNotebookEvent event(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, GetId(), [GetNSTabView() indexOfTabViewItem:tabViewItem], GetSelection()); event.SetEventObject(this); + GetEventHandler()->ProcessEvent(event); } bool wxNotebook::CocoaDelegate_tabView_shouldSelectTabViewItem(WX_NSTabViewItem tabViewItem)