X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96dabe431382e288fc1ccc561f62c400895ac0fa..55410bb4f67febe1ca20654f078ea4fb9a6223ae:/src/osx/artmac.cpp diff --git a/src/osx/artmac.cpp b/src/osx/artmac.cpp index 548eb2ce97..92e7cbee4e 100644 --- a/src/osx/artmac.cpp +++ b/src/osx/artmac.cpp @@ -19,14 +19,13 @@ #pragma hdrstop #endif +#include "wx/artprov.h" + #ifndef WX_PRECOMP #include "wx/image.h" #endif -#if !defined(__WXUNIVERSAL__) - -#include "wx/artprov.h" -#include "wx/image.h" +#if wxOSX_USE_COCOA_OR_CARBON // ---------------------------------------------------------------------------- // wxMacArtProvider @@ -109,6 +108,22 @@ wxBitmap wxMacArtProvider::CreateBitmap(const wxArtID& id, return wxNullBitmap; } -#endif // !defined(__WXUNIVERSAL__) +// ---------------------------------------------------------------------------- +// wxArtProvider::GetNativeSizeHint() +// ---------------------------------------------------------------------------- + +/*static*/ +wxSize wxArtProvider::GetNativeSizeHint(const wxArtClient& client) +{ + if ( client == wxART_TOOLBAR ) + { + // See http://developer.apple.com/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGIcons/chapter_15_section_9.html: + // "32 x 32 pixels is the recommended size" + return wxSize(32, 32); + } + + return wxDefaultSize; +} +#endif // wxOSX_USE_COCOA_CARBON