]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/menu.h
Fix so OGL can build without wxBuffer
[wxWidgets.git] / include / wx / gtk / 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;