X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6ca41e57f48db4c1a2de7ae67c7e4b655d9809af..76ed8f8d9c2b826d77d70b41c046decbde23da35:/include/wx/gtk/menu.h diff --git a/include/wx/gtk/menu.h b/include/wx/gtk/menu.h index 300a1918b8..9896ab085e 100644 --- a/include/wx/gtk/menu.h +++ b/include/wx/gtk/menu.h @@ -114,7 +114,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 +128,7 @@ public: wxWindow *m_invokingWindow; wxFunction m_callback; wxEvtHandler *m_eventHandler; + void *m_clientData; GtkWidget *m_menu; // GtkMenu };