From: Vadim Zeitlin Date: Sun, 28 Oct 2012 01:08:20 +0000 (+0000) Subject: Fix taskbar sample compilation under wxOSX/Cocoa. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/908d92cd8352201b5e53a76f0c777be8669cbd6e Fix taskbar sample compilation under wxOSX/Cocoa. Use wxTBI_XXX constants instead of wxTaskBarIcon::XXX ones which don't seem to exist any longer. See #11831. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/taskbar/tbtest.cpp b/samples/taskbar/tbtest.cpp index f5f8312666..c31128f06b 100644 --- a/samples/taskbar/tbtest.cpp +++ b/samples/taskbar/tbtest.cpp @@ -138,7 +138,7 @@ MyDialog::MyDialog(const wxString& title) } #if defined(__WXOSX__) && wxOSX_USE_COCOA - m_dockIcon = new MyTaskBarIcon(wxTaskBarIcon::DOCK); + m_dockIcon = new MyTaskBarIcon(wxTBI_DOCK); if ( !m_dockIcon->SetIcon(wxICON(sample)) ) { wxLogError(wxT("Could not set icon.")); diff --git a/samples/taskbar/tbtest.h b/samples/taskbar/tbtest.h index 6c08b2ef87..d667df9186 100644 --- a/samples/taskbar/tbtest.h +++ b/samples/taskbar/tbtest.h @@ -13,7 +13,7 @@ class MyTaskBarIcon : public wxTaskBarIcon { public: #if defined(__WXOSX__) && wxOSX_USE_COCOA - MyTaskBarIcon(wxTaskBarIconType iconType = DEFAULT_TYPE) + MyTaskBarIcon(wxTaskBarIconType iconType = wxTBI_DEFAULT_TYPE) : wxTaskBarIcon(iconType) #else MyTaskBarIcon()