Correct form of mnemonics returned by wxGTK wxMenu::GetTitle().

wxMenu::GetTitle() returned a string in GTK+ format (i.e. using underscores
instead of ampersands) instead of the expected wx one.

This is, of course, the right thing to do and it also fixes
wxMenuBar::FindMenuItem() as a side effect.

Closes #12672.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-11-16 22:38:53 +00:00
parent 21fc588c66
commit 7bc0ff8672
5 changed files with 63 additions and 7 deletions

View File

@@ -73,6 +73,9 @@ public:
virtual wxMenuItem* DoInsert(size_t pos, wxMenuItem *item);
virtual wxMenuItem* DoRemove(wxMenuItem *item);
// Returns the title, with mnemonics translated to wx format
const wxString GetTitle() const;
// TODO: virtual void SetTitle(const wxString& title);
// implementation