]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/menu.h
some stupid attempts to make utf8 work - it doesn't, but the code does no harm and...
[wxWidgets.git] / include / wx / gtk / menu.h
index 07f1575111d81b77ee0b93401b965bd9fab5dbee..caa919c05d43386145464a878efcc46b75802cff 100644 (file)
@@ -45,6 +45,9 @@ public:
     void SetInvokingWindow( wxWindow *win );
     void UnsetInvokingWindow( wxWindow *win );
 
+    // common part of Append and Insert
+    bool GtkAppend(wxMenu *menu, const wxString& title);
+
     GtkAccelGroup   *m_accel;
     GtkItemFactory  *m_factory;
     GtkWidget       *m_menubar;
@@ -77,13 +80,13 @@ public:
 
     // TODO: virtual void SetTitle(const wxString& title);
 
-#ifdef WXWIN_COMPATIBILITY
     wxMenu(const wxString& title, const wxFunction func)
         : wxMenuBase(title)
     {
+        Init();
+
         Callback(func);
     }
-#endif // WXWIN_COMPATIBILITY
 
     // implementation
     int FindMenuIdByMenuItem( GtkWidget *menuItem ) const;
@@ -98,6 +101,9 @@ private:
     // common code for all constructors:
     void Init();
 
+    // common part of Append and Insert
+    bool GtkAppend(wxMenuItem *item);
+
     DECLARE_DYNAMIC_CLASS(wxMenu)
 };