]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/menucmn.cpp
A little clarification
[wxWidgets.git] / src / common / menucmn.cpp
index 0a00187d3b033a3a65635deb14f6766d0eabb6d1..60dfd05bdb3c94cf28cb1f29bd04f6d2999e6fe3 100644 (file)
@@ -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.
 }
 
@@ -787,7 +789,6 @@ wxMenu *wxMenuBarBase::Remove(size_t pos)
     wxCHECK_MSG( node, NULL, wxT("bad index in wxMenuBar::Remove()") );
 
     wxMenu *menu = node->GetData();
-    wxCHECK( node, NULL );  // unexpected
     m_menus.Erase(node);
     menu->Detach();