- wxString oldLabel = menu->GetLabel(id);
- oldLabel = wxStripMenuCodes(oldLabel.BeforeFirst('\t'));
-#ifdef __WXGTK__
- oldLabel.Replace(wxT("_"), wxT("")); // GTK+ only
-#endif
- wxString label1 = wxStripMenuCodes(label.BeforeFirst('\t'));
- if (oldLabel != label1)
- menu->SetLabel(id, label);