X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b908d2244a4975ceda4e050744280bf07e9ff350..a6f989f3dbec747c6da629a32fa5cad9a554f66e:/include/wx/gtk/menu.h?ds=sidebyside diff --git a/include/wx/gtk/menu.h b/include/wx/gtk/menu.h index 78a429d065..8d6f68db7e 100644 --- a/include/wx/gtk/menu.h +++ b/include/wx/gtk/menu.h @@ -101,6 +101,7 @@ public: wxList m_menus; GtkWidget *m_menubar; long m_style; + wxWindow *m_invokingWindow; }; //----------------------------------------------------------------------------- @@ -112,18 +113,19 @@ class wxMenu : public wxEvtHandler DECLARE_DYNAMIC_CLASS(wxMenu) public: -#ifdef WXWIN_COMPATIBILITY wxMenu( const wxString& title, const wxFunction func) { Init(title, 0, func); } -#endif + wxMenu( long style ) + { + Init( wxEmptyString, style ); + } wxMenu( const wxString& title = wxEmptyString, long style = 0 ) { - Init(title, style, NULL); + Init(title, style); } - wxMenu( long style ); ~wxMenu(); // operations @@ -173,15 +175,16 @@ public: wxMenuItem *FindItemForId( int id ) const { return FindItem( id ); } -#ifdef WXWIN_COMPATIBILITY wxFunction GetCallback() const { return m_callback; } void Callback(const wxFunction func) { m_callback = func; } + wxFunction m_callback; + +#ifdef WXWIN_COMPATIBILITY // compatibility: these functions are deprecated bool Enabled(int id) const { return IsEnabled(id); } bool Checked(int id) const { return IsChecked(id); } - wxFunction m_callback; #endif // WXWIN_COMPATIBILITY // implementation @@ -201,11 +204,8 @@ public: private: // common code for both constructors: void Init( const wxString& title, - long style -#ifdef WXWIN_COMPATIBILITY - , const wxFunction func -#endif - ); + long style, + const wxFunction func = (wxFunction) NULL ); wxString m_title; wxList m_items;