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:
parent
a96f3e138b
commit
733fa5907d
@ -263,10 +263,14 @@ wxMenu *MyTaskBarIcon::CreatePopupMenu()
|
|||||||
submenu->AppendSeparator();
|
submenu->AppendSeparator();
|
||||||
submenu->Append(PU_SUB2, wxT("Another submenu"));
|
submenu->Append(PU_SUB2, wxT("Another submenu"));
|
||||||
menu->Append(PU_SUBMAIN, wxT("Submenu"), submenu);
|
menu->Append(PU_SUBMAIN, wxT("Submenu"), submenu);
|
||||||
#ifndef __WXOSX__ /*Mac has built-in quit menu*/
|
/* OSX has built-in quit menu for the dock menu, but not for the status item */
|
||||||
menu->AppendSeparator();
|
#ifdef __WXOSX__
|
||||||
menu->Append(PU_EXIT, wxT("E&xit"));
|
if ( OSXIsStatusItem() )
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
|
menu->AppendSeparator();
|
||||||
|
menu->Append(PU_EXIT, wxT("E&xit"));
|
||||||
|
}
|
||||||
return menu;
|
return menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user