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,
uint32 containerWindowFlags,
window_look look, window_feel feel, uint32 flags, uint32 workspace)
: BWindow(InitialWindowRect(feel), "TrackerWindow", look, feel, flags,
uint32 containerWindowFlags, window_look look, window_feel feel,
uint32 flags, uint32 workspace)
:
BWindow(InitialWindowRect(feel), "TrackerWindow", look, feel, flags,
workspace),
fFileContextMenu(NULL),
fWindowContextMenu(NULL),
@@ -1690,8 +1691,8 @@ BContainerWindow::MessageReceived(BMessage* message)
}
}
UpdateIfNeeded();
}
break;
}
default:
_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 (showAsVolume) {
// non-volume enable/disable copy, move, identify
EnableNamedMenuItem(fContextMenu, kDuplicateSelection, false);
EnableNamedMenuItem(fContextMenu, kDuplicateSelection,
false);
EnableNamedMenuItem(fContextMenu, kMoveToTrash, false);
EnableNamedMenuItem(fContextMenu, kIdentifyEntry, false);
EnableNamedMenuItem(fContextMenu, kIdentifyEntry,
false);
// volume model, enable/disable the Unmount item
bool ejectableVolumeSelected = false;