]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk1/menu.h
Added possibility of 2-step initialisation, and wxWIZARD_EX_HELPBUTTON style.
[wxWidgets.git] / include / wx / gtk1 / menu.h
index fa6580f0abeb6a9ecd74a720dd97933b039e3413..f36c816d2a5e724cfc0ff82fb0761dd6142c67c3 100644 (file)
@@ -80,11 +80,16 @@ public:
 
     // TODO: virtual void SetTitle(const wxString& title);
 
+    // compatibility only
+#if wxUSE_MENU_CALLBACK
     wxMenu(const wxString& title, const wxFunction func)
         : wxMenuBase(title)
     {
+        Init();
+
         Callback(func);
     }
+#endif // WXWIN_COMPATIBILITY_2
 
     // implementation
     int FindMenuIdByMenuItem( GtkWidget *menuItem ) const;