X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2680ced12cbbed16990007c5fa3ea7730700122..43c5b6e808f083617eb42cb48e77366844f8fb5c:/src/osx/carbon/uma.cpp diff --git a/src/osx/carbon/uma.cpp b/src/osx/carbon/uma.cpp index 7601f161a4..3009393821 100644 --- a/src/osx/carbon/uma.cpp +++ b/src/osx/carbon/uma.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/mac/carbon/uma.cpp +// Name: src/osx/carbon/uma.cpp // Purpose: UMA support // Author: Stefan Csomor // Modified by: @@ -20,17 +20,6 @@ #include "wx/osx/uma.h" -static SInt32 sUMASystemVersion = 0 ; - -long UMAGetSystemVersion() -{ - if ( sUMASystemVersion == 0 ) - { - verify_noerr(Gestalt(gestaltSystemVersion, &sUMASystemVersion)); - } - return sUMASystemVersion ; -} - // menu manager #if wxOSX_USE_CARBON @@ -69,12 +58,13 @@ void UMAEnableMenuItem( MenuRef inMenu , MenuItemIndex inItem , bool enable) DisableMenuItem( inMenu , inItem ) ; } -void UMAAppendSubMenuItem( MenuRef menu , const wxString& title, wxFontEncoding encoding , SInt16 id ) +void UMAAppendSubMenuItem( MenuRef menu , const wxString& title, wxFontEncoding encoding , MenuRef submenu ) { AppendMenuItemTextWithCFString( menu, CFSTR("A"), 0, 0,NULL); UMASetMenuItemText( menu, (SInt16) ::CountMenuItems(menu), title , encoding ); - SetMenuItemHierarchicalID( menu , CountMenuItems( menu ) , id ) ; + SetMenuItemHierarchicalMenu( menu , CountMenuItems( menu ) , submenu ) ; + SetMenuTitleWithCFString(submenu , wxCFStringRef(title , encoding) ); } void UMAInsertSubMenuItem( MenuRef menu , const wxString& title, wxFontEncoding encoding , MenuItemIndex item , SInt16 id )