]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/menucmn.cpp
use wxDC::SetDeviceClippingRegion() instead of deprecated SetClippingRegion()
[wxWidgets.git] / src / common / menucmn.cpp
index e97a419bd609a7877703a7d720d4ba18d9799f0e..db83047580ec2c0041b16babbfbf4c116c58b370 100644 (file)
@@ -125,6 +125,13 @@ void wxMenuItemBase::SetHelp(const wxString& str)
     }
 }
 
+#ifndef __WXPM__
+wxString wxMenuItemBase::GetLabelText(const wxString& text)
+{
+    return wxStripMenuCodes(text);
+}
+#endif
+
 #if WXWIN_COMPATIBILITY_2_8
 wxString wxMenuItemBase::GetLabelFromText(const wxString& text)
 {
@@ -152,8 +159,6 @@ void wxMenuBase::Init(long style)
 wxMenuBase::~wxMenuBase()
 {
     WX_CLEAR_LIST(wxMenuItemList, m_items);
-
-    // Actually, in GTK, the submenus have to get deleted first.
 }
 
 // ----------------------------------------------------------------------------
@@ -465,7 +470,7 @@ bool wxMenuBase::SendEvent(int id, int checked)
             wxWindow *win = menu->GetInvokingWindow();
             if ( win )
             {
-                processed = win->GetEventHandler()->SafelyProcessEvent(event);
+                processed = win->HandleWindowEvent(event);
                 break;
             }