X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a230426807715c54b6fdcf410e3678ee0dfada6..944975221d770af8efe0e03ab4e339b5432e3dd9:/src/common/iconbndl.cpp diff --git a/src/common/iconbndl.cpp b/src/common/iconbndl.cpp index 676ff07f12..ab8ecc932d 100644 --- a/src/common/iconbndl.cpp +++ b/src/common/iconbndl.cpp @@ -68,7 +68,7 @@ wxIconBundle::wxIconBundle() { } -wxIconBundle::wxIconBundle(const wxString& file, long type) +wxIconBundle::wxIconBundle(const wxString& file, wxBitmapType type) : wxGDIObject() { AddIcon(file, type); @@ -101,7 +101,7 @@ void wxIconBundle::DeleteIcons() UnRef(); } -void wxIconBundle::AddIcon(const wxString& file, long type) +void wxIconBundle::AddIcon(const wxString& file, wxBitmapType type) { #ifdef __WXMAC__ // Deal with standard icons @@ -181,7 +181,7 @@ wxIcon wxIconBundle::GetIcon(const wxSize& size) const } } -#ifdef __WXMAC__ +#if defined( __WXMAC__ ) && wxOSX_USE_CARRBON return wxIcon(iconBest.GetHICON(), size); #else return iconBest; @@ -238,3 +238,4 @@ wxIcon wxIconBundle::GetIconByIndex(size_t n) const return M_ICONBUNDLEDATA->m_icons[n]; } +