Ticket #5889: FindItem.patch
File FindItem.patch, 1.1 KB (added by , 14 years ago) |
---|
-
VolumeWindow.cpp
85 85 } 86 86 } 87 87 88 BMenuItem* item = fMenuBar->FindItem( B_TRANSLATE("Unmount"));88 BMenuItem* item = fMenuBar->FindItem(kUnmountVolume); 89 89 if (item) 90 90 item->SetEnabled(ejectableVolumeSelected); 91 91 } -
ContainerWindow.cpp
2195 2195 bool poseViewIsQuery = TargetModel()->IsQuery(); 2196 2196 // if the view is a query pose view, add edit query menu item 2197 2197 2198 BMenuItem* item = menu->FindItem( B_TRANSLATE("Edit query"));2198 BMenuItem* item = menu->FindItem(kEditQuery); 2199 2199 if (!poseViewIsQuery && !queryInSelection && item) 2200 2200 item->Menu()->RemoveItem(item); 2201 2201 … … 3024 3024 3025 3025 if (context == kMenuBarContext || context == kWindowPopUpContext) { 3026 3026 BMenu* sizeMenu = NULL; 3027 if (BMenuItem* item = menu->FindItem( B_TRANSLATE("Icon view"))) {3027 if (BMenuItem* item = menu->FindItem(kIconMode)) { 3028 3028 sizeMenu = item->Submenu(); 3029 3029 } 3030 3030