X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ac013b1a5d8210ab0c53f7eb9687399b9312162..4c200e8d87728306b219822d9c07e28526cd8649:/src/mac/choice.cpp?ds=inline diff --git a/src/mac/choice.cpp b/src/mac/choice.cpp index 9a9cf69647..46e08be0d5 100644 --- a/src/mac/choice.cpp +++ b/src/mac/choice.cpp @@ -57,12 +57,7 @@ bool wxChoice::Create(wxWindow *parent, wxWindowID id, // ---------------------------------------------------------------------------- int wxChoice::DoAppend(const wxString& item) { - Str255 label; - wxMenuItem::MacBuildMenuString( label , NULL , NULL , item ,false); - MacAppendMenu(MAC_WXHMENU( m_macPopUpMenuHandle ) , "\pA"); - SetMenuItemText(MAC_WXHMENU( m_macPopUpMenuHandle ) , - (SInt16) ::CountMenuItems(MAC_WXHMENU( m_macPopUpMenuHandle ) ), label); - // was AppendMenu( MAC_WXHMENU( m_macPopUpMenuHandle ) , label ) ; + UMAAppendMenuItem(MAC_WXHMENU( m_macPopUpMenuHandle ) , item); m_strings.Add( item ) ; m_datas.Add( NULL ) ; int index = m_strings.GetCount() - 1 ;