X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5bd9e5192b0299100b06a1b982d031b87538961b..4714ef79af518f74214126559ef48607acf89180:/include/wx/gtk1/menu.h diff --git a/include/wx/gtk1/menu.h b/include/wx/gtk1/menu.h index f09ee3bc04..3638cee90e 100644 --- a/include/wx/gtk1/menu.h +++ b/include/wx/gtk1/menu.h @@ -100,6 +100,7 @@ public: GtkItemFactory *m_factory; wxList m_menus; GtkWidget *m_menubar; + long m_style; }; //----------------------------------------------------------------------------- @@ -112,7 +113,9 @@ class wxMenu : public wxEvtHandler public: wxMenu( const wxString& title = wxEmptyString, - const wxFunction func = (wxFunction) NULL ); + const wxFunction func = (wxFunction) NULL, + long style = 0); + wxMenu( long style ); ~wxMenu(); // operations @@ -182,7 +185,13 @@ public: GtkAccelGroup *m_accel; GtkItemFactory *m_factory; -private: + // used by wxMenuBar + inline long GetStyle(void) const { return m_style; } + private: + // common code for both constructors: + void Init( const wxString& title, + const wxFunction func, + long style); wxString m_title; wxList m_items; @@ -190,6 +199,7 @@ private: wxFunction m_callback; wxEvtHandler *m_eventHandler; void *m_clientData; + long m_style; }; #endif // __GTKMENUH__