]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/taskbar.cpp
first stab at the selection iterator
[wxWidgets.git] / src / mac / carbon / taskbar.cpp
index cc9afbef1d09f6b35f1fb2202947841764d206e0..bce496ab28ca0531a4869b5b7d3ec7432cf0af49 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/dcmemory.h"
+    #include "wx/menu.h"
+    #include "wx/toplevel.h"
+    #include "wx/icon.h"
 #endif
 
 #include "wx/mac/private.h"
 
-#include "wx/menu.h"
-#include "wx/icon.h"
-
-
 class wxTaskBarIconImpl
 {
 public:
@@ -236,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(