X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9add93670bb4a38e4007b8422b34b29b6194eecb..04bf08b7e26f35a177b46948789505c316b2df28:/src/motif/menu.cpp?ds=sidebyside diff --git a/src/motif/menu.cpp b/src/motif/menu.cpp index c85dea8e74..82193e0cce 100644 --- a/src/motif/menu.cpp +++ b/src/motif/menu.cpp @@ -206,6 +206,17 @@ void wxMenuBar::Init() m_font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT); } +wxMenuBar::wxMenuBar(int n, wxMenu *menus[], const wxArrayString& titles) +{ + wxASSERT( size_t(n) == titles.GetCount() ); + + Init(); + + m_titles = titles; + for ( int i = 0; i < n; i++ ) + m_menus.Append(menus[i]); +} + wxMenuBar::wxMenuBar(int n, wxMenu *menus[], const wxString titles[]) { Init();