]> git.saurik.com Git - wxWidgets.git/commitdiff
using newer API
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 10 Aug 2006 05:31:13 +0000 (05:31 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 10 Aug 2006 05:31:13 +0000 (05:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/combobox.cpp
src/mac/carbon/taskbar.cpp

index dcb064398c89c4650c5b144b5a958f2bd46491d5..0f0fbdc08a360d22abb0e65c8d334fc0b2c4d17a 100644 (file)
@@ -37,7 +37,7 @@ static int nextPopUpMenuId = 1000 ;
 
 MenuHandle NewUniqueMenu()
 {
-    MenuHandle handle = NewMenu( nextPopUpMenuId , "\pMenu" ) ;
+    MenuHandle handle = UMANewMenu(nextPopUpMenuId, wxString(wxT("Menu")), wxFont::GetDefaultEncoding() );
     nextPopUpMenuId++ ;
 
     return handle ;
index c8bb4e1f2632c4aeaf59b439b97b73be3f719c93..bce496ab28ca0531a4869b5b7d3ec7432cf0af49 100644 (file)
@@ -235,7 +235,7 @@ pascal OSStatus wxDockEventHandler( EventHandlerCallRef inHandlerCallRef,
         // When SetEventParameter is called it will decrement
         // the reference count of the menu - we need to make
         // sure it stays around in the wxMenu class here
-        RetainMenu(hMenu);
+        CFRetain(hMenu);
 
         // set the actual dock menu
         err = SetEventParameter(