]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/motif/menu.h
added missing DYNLIB_CLASS define.
[wxWidgets.git] / include / wx / motif / menu.h
index 90fc70ed355cfb6e6969c81fa5484a863f7a7abd..c50ae7865331f4d1c0616259574b2bcdb2ae9437 100644 (file)
@@ -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; }