]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/frame.cpp
wxMotif compiles (and runs minimal sample) again after wxMenu changes
[wxWidgets.git] / src / gtk1 / frame.cpp
index 928f7fa9000a2e9b70ae62d14d26ebd1ef350e22..2deb4641eac62e4c9d56d4912caf4be3236a8e60 100644 (file)
@@ -1070,10 +1070,10 @@ void wxFrame::Command( int id )
     wxMenuBar *bar = GetMenuBar();
     if (!bar) return;
 
-    wxMenuItem *item = bar->FindItemForId(id) ;
+    wxMenuItem *item = bar->FindItem(id) ;
     if (item && item->IsCheckable())
     {
-        bar->Check(id,!bar->Checked(id)) ;
+        bar->Check(id, !bar->IsChecked(id)) ;
     }
 
     wxEvtHandler* evtHandler = GetEventHandler();