X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6ca41e57f48db4c1a2de7ae67c7e4b655d9809af..f3855ef064498aadea229d8202eedd78aed3f8e1:/include/wx/gtk/menu.h diff --git a/include/wx/gtk/menu.h b/include/wx/gtk/menu.h index 300a1918b8..a4656258ed 100644 --- a/include/wx/gtk/menu.h +++ b/include/wx/gtk/menu.h @@ -49,6 +49,8 @@ public: int FindMenuItem( const wxString &menuString, const wxString &itemString ) const; wxMenuItem* FindMenuItemById( int id ) const; + inline wxMenuItem* FindItemForId( int id ) const + { return FindMenuItemById( id ); } void Check( int id, bool check ); bool Checked( int id ) const; @@ -114,7 +116,11 @@ public: inline void SetEventHandler(wxEvtHandler *handler) { m_eventHandler = handler; } inline wxEvtHandler *GetEventHandler() { return m_eventHandler; } -public: + inline void SetClientData( void* clientData ) { m_clientData = clientData; } + inline void* GetClientData() const { return m_clientData; } + +// implementation + int FindMenuIdByMenuItem( GtkWidget *menuItem ) const; void SetInvokingWindow( wxWindow *win ); wxWindow *GetInvokingWindow(); @@ -124,6 +130,7 @@ public: wxWindow *m_invokingWindow; wxFunction m_callback; wxEvtHandler *m_eventHandler; + void *m_clientData; GtkWidget *m_menu; // GtkMenu };