]> git.saurik.com Git - wxWidgets.git/commit
Allow setting Mac-specific menu item ids to wxID_NONE to suppress them.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 16 Sep 2010 19:36:37 +0000 (19:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 16 Sep 2010 19:36:37 +0000 (19:36 +0000)
commit4f1b95ea5291c6b690caa0a82d4c4a8c598c148a
treef497b89985c2df827627ec135e66d193870149d3
parent0dc44daa338774eafd9ef9e9c31212acf07532e2
Allow setting Mac-specific menu item ids to wxID_NONE to suppress them.

If s_macAboutMenuItemId or s_macPreferencesMenuItemId was explicitly set to
wxID_NONE by the application, don't add them to the standard menu at all,
otherwise they would be present there but be always disabled and useless.

This is still not documented because we really need a better API for this but
it at least provides a temporary workaround for having useless menu items
under OS X.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/osx/menu_osx.cpp