X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc86cb34c3a8f141686339f1285cf259dec5faaa..ef5390661e7e0122ecaab8eeafd9a221fed3f80b:/src/gtk1/menu.cpp diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index b6d4de7986..577e5fa2a4 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -7,9 +7,9 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// - #ifdef __GNUG__ #pragma implementation "menu.h" +#pragma implementation "menuitem.h" #endif #include "wx/menu.h" @@ -262,8 +262,11 @@ wxMenu::wxMenu( const wxString& title, const wxFunction func ) m_items.DeleteContents( TRUE ); m_invokingWindow = (wxWindow *) NULL; m_menu = gtk_menu_new(); // Do not show! + m_callback = func; m_eventHandler = this; + m_clientData = (void*) NULL; + if (m_title.IsNull()) m_title = ""; if (m_title != "") {