]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk1/menu.h
Fix so the Host: header in wxHTTP really works. With virtual hosts it
[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;