diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-06-03 10:21:38 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-06-03 21:29:07 +0300 |
commit | 74ae541c328cffb168a98faa746d0faceffb3e84 (patch) | |
tree | 89ebbb26a42e008f2e32d35e127500f70030c2b3 /vcl/osx/salframe.cxx | |
parent | e1d82a7e2db1ea837303c072913cd52cacf75b3d (diff) |
WaE: 'scrollerWidth' is deprecated: first deprecated in OS X 10.7
Change-Id: I2451687c10f91e7d5242b04974cb7bdd745de51c
Diffstat (limited to 'vcl/osx/salframe.cxx')
-rw-r--r-- | vcl/osx/salframe.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx index b3a1015f0527..c799407456aa 100644 --- a/vcl/osx/salframe.cxx +++ b/vcl/osx/salframe.cxx @@ -1250,8 +1250,11 @@ void AquaSalFrame::UpdateSettings( AllSettings& rSettings ) getAppleScrollBarVariant(aStyleSettings); // set scrollbar size +#if MACOSX_SDK_VERSION >= 1070 + aStyleSettings.SetScrollBarSize( static_cast<long int>([NSScroller scrollerWidthForControlSize:NSRegularControlSize scrollerStyle:NSScrollerStyleLegacy]) ); +#else aStyleSettings.SetScrollBarSize( static_cast<long int>([NSScroller scrollerWidth]) ); - +#endif // images in menus false for MacOSX aStyleSettings.SetPreferredUseImagesInMenus( false ); aStyleSettings.SetHideDisabledMenuItems( true ); |