make sure the quit item is only shown where appropriate on osx

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2011-02-28 10:07:00 +00:00
parent a96f3e138b
commit 733fa5907d

View File

@ -263,10 +263,14 @@ wxMenu *MyTaskBarIcon::CreatePopupMenu()
submenu->AppendSeparator();
submenu->Append(PU_SUB2, wxT("Another submenu"));
menu->Append(PU_SUBMAIN, wxT("Submenu"), submenu);
#ifndef __WXOSX__ /*Mac has built-in quit menu*/
menu->AppendSeparator();
menu->Append(PU_EXIT, wxT("E&xit"));
/* OSX has built-in quit menu for the dock menu, but not for the status item */
#ifdef __WXOSX__
if ( OSXIsStatusItem() )
#endif
{
menu->AppendSeparator();
menu->Append(PU_EXIT, wxT("E&xit"));
}
return menu;
}