Use openAnyways mode instead of click to open rect for tracker context
menus. May help with #3267. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36607 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a9ab081270
commit
4ab96afd71
|
@ -2439,8 +2439,6 @@ BContainerWindow::ShowDropContextMenu(BPoint loc)
|
||||||
|
|
||||||
PoseView()->ConvertToScreen(&global);
|
PoseView()->ConvertToScreen(&global);
|
||||||
PoseView()->CommitActivePose();
|
PoseView()->CommitActivePose();
|
||||||
BRect mouseRect(global.x, global.y, global.x, global.y);
|
|
||||||
mouseRect.InsetBy(-5, -5);
|
|
||||||
|
|
||||||
// Change the "Create Link" item - allow user to
|
// Change the "Create Link" item - allow user to
|
||||||
// create relative links with the Shift key down.
|
// create relative links with the Shift key down.
|
||||||
|
@ -2455,7 +2453,7 @@ BContainerWindow::ShowDropContextMenu(BPoint loc)
|
||||||
item->SetMessage(new BMessage(kCreateLink));
|
item->SetMessage(new BMessage(kCreateLink));
|
||||||
}
|
}
|
||||||
|
|
||||||
item = fDropContextMenu->Go(global, true, true, mouseRect);
|
item = fDropContextMenu->Go(global, true, true);
|
||||||
if (item)
|
if (item)
|
||||||
return item->Command();
|
return item->Command();
|
||||||
|
|
||||||
|
@ -2470,8 +2468,6 @@ BContainerWindow::ShowContextMenu(BPoint loc, const entry_ref *ref, BView *)
|
||||||
BPoint global(loc);
|
BPoint global(loc);
|
||||||
PoseView()->ConvertToScreen(&global);
|
PoseView()->ConvertToScreen(&global);
|
||||||
PoseView()->CommitActivePose();
|
PoseView()->CommitActivePose();
|
||||||
BRect mouseRect(global.x, global.y, global.x, global.y);
|
|
||||||
mouseRect.InsetBy(-5, -5);
|
|
||||||
|
|
||||||
if (ref) {
|
if (ref) {
|
||||||
// clicked on a pose, show file or volume context menu
|
// clicked on a pose, show file or volume context menu
|
||||||
|
@ -2488,14 +2484,12 @@ BContainerWindow::ShowContextMenu(BPoint loc, const entry_ref *ref, BView *)
|
||||||
BPoint global(loc);
|
BPoint global(loc);
|
||||||
PoseView()->ConvertToScreen(&global);
|
PoseView()->ConvertToScreen(&global);
|
||||||
PoseView()->CommitActivePose();
|
PoseView()->CommitActivePose();
|
||||||
BRect mouseRect(global.x, global.y, global.x, global.y);
|
|
||||||
mouseRect.InsetBy(-5, -5);
|
|
||||||
|
|
||||||
EnableNamedMenuItem(fTrashContextMenu, kEmptyTrash,
|
EnableNamedMenuItem(fTrashContextMenu, kEmptyTrash,
|
||||||
static_cast<TTracker *>(be_app)->TrashFull());
|
static_cast<TTracker *>(be_app)->TrashFull());
|
||||||
|
|
||||||
SetupNavigationMenu(ref, fTrashContextMenu);
|
SetupNavigationMenu(ref, fTrashContextMenu);
|
||||||
fTrashContextMenu->Go(global, true, false, mouseRect, true);
|
fTrashContextMenu->Go(global, true, true, true);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
bool showAsVolume = false;
|
bool showAsVolume = false;
|
||||||
|
@ -2591,7 +2585,7 @@ BContainerWindow::ShowContextMenu(BPoint loc, const entry_ref *ref, BView *)
|
||||||
|
|
||||||
UpdateMenu(fContextMenu, kPosePopUpContext);
|
UpdateMenu(fContextMenu, kPosePopUpContext);
|
||||||
|
|
||||||
fContextMenu->Go(global, true, false, mouseRect, true);
|
fContextMenu->Go(global, true, true, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (fWindowContextMenu) {
|
} else if (fWindowContextMenu) {
|
||||||
|
@ -2605,7 +2599,7 @@ BContainerWindow::ShowContextMenu(BPoint loc, const entry_ref *ref, BView *)
|
||||||
SetupNavigationMenu(ref, fWindowContextMenu);
|
SetupNavigationMenu(ref, fWindowContextMenu);
|
||||||
UpdateMenu(fWindowContextMenu, kWindowPopUpContext);
|
UpdateMenu(fWindowContextMenu, kWindowPopUpContext);
|
||||||
|
|
||||||
fWindowContextMenu->Go(global, true, false, mouseRect, true);
|
fWindowContextMenu->Go(global, true, true, true);
|
||||||
}
|
}
|
||||||
fContextMenu = NULL;
|
fContextMenu = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue