diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-06-03 10:21:38 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-06-11 10:02:36 +0300 |
commit | 7b39a65227bc4226bf9eff262584c5f2a29a93cf (patch) | |
tree | 54ca3773aaccfc0bf8af08d63ccc7f59eb2360fc | |
parent | 21efca24cf34e1c8c3713e258bb03896147df969 (diff) |
WaE: 'scrollerWidth' is deprecated: first deprecated in OS X 10.7
Change-Id: I2451687c10f91e7d5242b04974cb7bdd745de51c
-rw-r--r-- | vcl/aqua/source/window/salframe.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/aqua/source/window/salframe.cxx b/vcl/aqua/source/window/salframe.cxx index 523fbdaa1d74..8a73b6cbb38b 100644 --- a/vcl/aqua/source/window/salframe.cxx +++ b/vcl/aqua/source/window/salframe.cxx @@ -1302,8 +1302,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( sal_True ); |