wxDockTaskBarIcon* pTB = (wxDockTaskBarIcon*) pData;
const UInt32 eventClass = GetEventClass(inEvent);
const UInt32 eventKind = GetEventKind(inEvent);
-
+
OSStatus err = eventNotHandledErr;
// Handle wxTaskBar menu events (note that this is a global event handler
// convert the wxIcon into a wxBitmap so we can perform some
// wxBitmap operations with it
wxBitmap bmp( icon );
- wxASSERT( bmp.Ok() );
+ wxASSERT( bmp.IsOk() );
// get the CGImageRef for the wxBitmap:
// OSX builds only, but then the dock only exists in OSX
//-----------------------------------------------------------------------------
bool wxDockTaskBarIcon::RemoveIcon()
{
- if (m_pMenu)
- {
- delete m_pMenu;
- m_pMenu = NULL;
- }
+ wxDELETE(m_pMenu);
// restore old icon to the dock
OSStatus err = RestoreApplicationDockTileImage();