X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1ab378c03f2c6ee93c3a84f0ed12e0cf0f2f16cc..6da1ce616686ad1dc03021aead77a048971279d3:/src/common/menucmn.cpp?ds=sidebyside diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index 7208dbbd49..60dfd05bdb 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "menubase.h" #endif @@ -166,6 +166,8 @@ wxAcceleratorEntry *wxGetAccelFromString(const wxString& label) keyCode = WXK_DELETE; else if ( current == wxT("DELETE") ) keyCode = WXK_DELETE; + else if ( current == wxT("BACK") ) + keyCode = WXK_BACK; else if ( current == wxT("INS") ) keyCode = WXK_INSERT; else if ( current == wxT("INSERT") ) @@ -288,7 +290,7 @@ void wxMenuBase::Init(long style) wxMenuBase::~wxMenuBase() { WX_CLEAR_LIST(wxMenuItemList, m_items); - + // Actually, in GTK, the submenus have to get deleted first. }