X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/546bfbea8180aeee5a16f4abb34e721445277305..d9b21c9f47f59f36d73220270002b55a7babfdfc:/include/wx/menuitem.h?ds=inline diff --git a/include/wx/menuitem.h b/include/wx/menuitem.h index 59d6e3de90..2c4bf45bb5 100644 --- a/include/wx/menuitem.h +++ b/include/wx/menuitem.h @@ -71,7 +71,7 @@ public: // what kind of menu item we are wxItemKind GetKind() const { return m_kind; } - virtual void SetCheckable(bool checkable) { m_kind = wxITEM_CHECK; } + virtual void SetCheckable(bool checkable) { m_kind = checkable ? wxITEM_CHECK : wxITEM_NORMAL; } bool IsCheckable() const { return m_kind == wxITEM_CHECK || m_kind == wxITEM_RADIO; } @@ -163,8 +163,6 @@ private: #include "wx/mac/menuitem.h" #elif defined(__WXPM__) #include "wx/os2/menuitem.h" -#elif defined(__WXSTUBS__) - #include "wx/stubs/menuitem.h" #endif #endif // wxUSE_BASE_CLASSES_ONLY/!wxUSE_BASE_CLASSES_ONLY