X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c71830c3b63568566cf5f006165e51ffaee0c704..7ef8bfc4c75374ffd4de538cdeaa0f81b69bf61f:/include/wx/motif/menu.h?ds=sidebyside

diff --git a/include/wx/motif/menu.h b/include/wx/motif/menu.h
index 90fc70ed35..c50ae78653 100644
--- a/include/wx/motif/menu.h
+++ b/include/wx/motif/menu.h
@@ -47,13 +47,13 @@ public:
 
     bool ProcessCommand(wxCommandEvent& event);
 
-#if WXWIN_COMPATIBILITY
     wxMenu(const wxString& title, const wxFunction func)
         : wxMenuBase(title)
     {
+        Init();
+
         Callback(func);
     }
-#endif // WXWIN_COMPATIBILITY
 
     //// Motif-specific
     WXWidget GetButtonWidget() const { return m_buttonWidget; }