Tracker: some style fixes to BContainerWindow()

This commit is contained in:
John Scipione
2014-02-01 04:42:34 -05:00
parent 6be6813f23
commit e37767b0d2
+9 -6
View File
@@ -511,9 +511,10 @@ DraggableContainerIcon::Draw(BRect updateRect)
BContainerWindow::BContainerWindow(LockingList<BWindow>* list, BContainerWindow::BContainerWindow(LockingList<BWindow>* list,
uint32 containerWindowFlags, uint32 containerWindowFlags, window_look look, window_feel feel,
window_look look, window_feel feel, uint32 flags, uint32 workspace) uint32 flags, uint32 workspace)
: BWindow(InitialWindowRect(feel), "TrackerWindow", look, feel, flags, :
BWindow(InitialWindowRect(feel), "TrackerWindow", look, feel, flags,
workspace), workspace),
fFileContextMenu(NULL), fFileContextMenu(NULL),
fWindowContextMenu(NULL), fWindowContextMenu(NULL),
@@ -1690,8 +1691,8 @@ BContainerWindow::MessageReceived(BMessage* message)
} }
} }
UpdateIfNeeded(); UpdateIfNeeded();
}
break; break;
}
default: default:
_inherited::MessageReceived(message); _inherited::MessageReceived(message);
@@ -2681,9 +2682,11 @@ BContainerWindow::ShowContextMenu(BPoint loc, const entry_ref* ref, BView*)
if (model.InitCheck() == B_OK) { // ??? Do I need this ??? if (model.InitCheck() == B_OK) { // ??? Do I need this ???
if (showAsVolume) { if (showAsVolume) {
// non-volume enable/disable copy, move, identify // non-volume enable/disable copy, move, identify
EnableNamedMenuItem(fContextMenu, kDuplicateSelection, false); EnableNamedMenuItem(fContextMenu, kDuplicateSelection,
false);
EnableNamedMenuItem(fContextMenu, kMoveToTrash, false); EnableNamedMenuItem(fContextMenu, kMoveToTrash, false);
EnableNamedMenuItem(fContextMenu, kIdentifyEntry, false); EnableNamedMenuItem(fContextMenu, kIdentifyEntry,
false);
// volume model, enable/disable the Unmount item // volume model, enable/disable the Unmount item
bool ejectableVolumeSelected = false; bool ejectableVolumeSelected = false;