X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/96fa7876bf2cb12837b2eaf49a54f8a0547ef7c2..6ecb30a36fe6c85e60a2d7c6ac2fbec6f0cf98b2:/src/gtk1/menu.cpp diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index 47ac10d93f..daff7c92be 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -625,11 +625,12 @@ wxMenuItem::~wxMenuItem() } // return the menu item text without any menu accels -wxString wxMenuItem::GetLabel() const +/* static */ +wxString wxMenuItemBase::GetLabelFromText(const wxString& text) { wxString label; #if (GTK_MINOR_VERSION > 0) - for ( const wxChar *pc = m_text.c_str(); *pc; pc++ ) + for ( const wxChar *pc = text.c_str(); *pc; pc++ ) { if ( *pc == wxT('_') ) { @@ -640,7 +641,7 @@ wxString wxMenuItem::GetLabel() const label += *pc; } #else // GTK+ 1.0 - label = m_text; + label = text; #endif // GTK+ 1.2/1.0 return label;