]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/menu.cpp
Generate key events in generic wxDataViewCtrl implementation.
[wxWidgets.git] / src / motif / menu.cpp
index 65fcead0535129cab59a7534c5baa79f6ec551c8..5f30a9549644ae55a303bc5d6fe7841b631092e3 100644 (file)
@@ -446,7 +446,7 @@ void wxMenu::DestroyWidgetAndDetach()
 WXWidget wxMenu::CreateMenu (wxMenuBar * menuBar,
                              WXWidget parent,
                              wxMenu * topMenu,
-                             size_t WXUNUSED(index),
+                             size_t menuIndex,
                              const wxString& title,
                              bool pullDown)
 {
@@ -493,7 +493,7 @@ WXWidget wxMenu::CreateMenu (wxMenuBar * menuBar,
             XmNlabelString, label_str(),
             XmNsubMenuId, menu,
             (String)wxFont::GetFontTag(), m_font.GetFontTypeC(dpy),
-            XmNpositionIndex, index,
+            XmNpositionIndex, menuIndex,
             NULL);
 
         if (mnem != 0)