X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/524c47aa3adf2af11a3069fd5da035a604f08f66..b0ae60498d2a1cab6cff09d425d235a0847135e8:/src/osx/toolbar_osx.cpp?ds=sidebyside diff --git a/src/osx/toolbar_osx.cpp b/src/osx/toolbar_osx.cpp index 310eb916b5..13e2adf1c4 100644 --- a/src/osx/toolbar_osx.cpp +++ b/src/osx/toolbar_osx.cpp @@ -1,10 +1,10 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/osx/carbon/toolbar.cpp +// Name: src/osx/toolbar_osx.cpp // Purpose: wxToolBar // Author: Stefan Csomor // Modified by: // Created: 04/01/98 -// RCS-ID: $Id: toolbar.cpp 54954 2008-08-03 11:27:03Z VZ $ +// RCS-ID: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -26,6 +26,12 @@ IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxControl) -// no common implementation +bool wxToolBar::Destroy() +{ +#if wxOSX_USE_NATIVE_TOOLBAR + MacUninstallNativeToolbar(); +#endif + return wxToolBarBase::Destroy(); +} #endif // wxUSE_TOOLBAR