X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a96f3e138b338ebb59c247a1ba779014d958f834..65fb4b3a4f18e1d8b58ac92d50d4cc7f81f03783:/samples/taskbar/tbtest.cpp?ds=sidebyside diff --git a/samples/taskbar/tbtest.cpp b/samples/taskbar/tbtest.cpp index f63a1843fb..f5f8312666 100644 --- a/samples/taskbar/tbtest.cpp +++ b/samples/taskbar/tbtest.cpp @@ -29,7 +29,7 @@ #endif // the application icon (under Windows and OS/2 it is in resources) -#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXMGL__) || defined(__WXX11__) +#ifndef wxHAS_IMAGES_IN_RESOURCES #include "../sample.xpm" #endif @@ -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; }