///////////////////////////////////////////////////////////////////////////////
-// Name: src/mac/carbon/taskbar.cpp
+// Name: src/osx/carbon/taskbar.cpp
// Purpose: wxTaskBarIcon
// Author: Ryan Norton
// Modified by:
if (item && itemMenu )
{
if ( eventKind == kEventCommandProcess )
- err = itemMenu->MacHandleCommandProcess( item, id );
+ {
+ if ( itemMenu->HandleCommandProcess( item ) )
+ err = noErr;
+ }
else if ( eventKind == kEventCommandUpdateStatus )
- err = itemMenu->MacHandleCommandUpdateStatus( item, id );
+ {
+ if ( itemMenu->HandleCommandUpdateStatus( item ) )
+ err = noErr;
+ }
}
}
}
if (theNewMenu)
{
- if (m_pMenu)
- delete m_pMenu;
+ delete m_pMenu;
m_pMenu = theNewMenu;
m_pMenu->SetInvokingWindow(m_menuEventWindow);
}
{
wxASSERT(menu != NULL);
- if (m_pMenu)
- delete m_pMenu;
+ delete m_pMenu;
// start copy of menu
m_pMenu = wxDeepCopyMenu(menu);