]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/menu.cpp
Fixed player dialog listbox size and app icon on wxGTK
[wxWidgets.git] / src / motif / menu.cpp
index be5776e4c086d7ae8bfa4216ea6d0b2951c61293..ed09c4e47d63e8425663b8fb0c68b3b293efec4a 100644 (file)
@@ -167,7 +167,7 @@ bool wxMenu::ProcessCommand(wxCommandEvent & event)
     // Try the menu's event handler
     if ( !processed && GetEventHandler())
     {
-        processed = GetEventHandler()->ProcessEvent(event);
+        processed = HandleWindowEvent(event);
     }
     // Try the window the menu was popped up from (and up
     // through the hierarchy)
@@ -236,7 +236,7 @@ void wxMenuBar::SetMenuLabel(size_t pos, const wxString& label)
                       XmNlabelString, label_str(),
                       NULL);
     }
-    m_titles[i] = label;
+    m_titles[pos] = label;
 }
 
 wxString wxMenuBar::GetMenuLabel(size_t pos) const