Author: anevilyak Date: 2010-05-04 16:24:12 +0200 (Tue, 04 May 2010) New Revision: 36607 Changeset: http://dev.haiku-os.org/changeset/36607/haiku Ticket: http://dev.haiku-os.org/ticket/3267 Modified: haiku/trunk/src/kits/tracker/ContainerWindow.cpp Log: Use openAnyways mode instead of click to open rect for tracker context menus. May help with #3267. Modified: haiku/trunk/src/kits/tracker/ContainerWindow.cpp =================================================================== --- haiku/trunk/src/kits/tracker/ContainerWindow.cpp 2010-05-04 14:13:46 UTC (rev 36606) +++ haiku/trunk/src/kits/tracker/ContainerWindow.cpp 2010-05-04 14:24:12 UTC (rev 36607) @@ -2439,8 +2439,6 @@ PoseView()->ConvertToScreen(&global); PoseView()->CommitActivePose(); - BRect mouseRect(global.x, global.y, global.x, global.y); - mouseRect.InsetBy(-5, -5); // Change the "Create Link" item - allow user to // create relative links with the Shift key down. @@ -2455,7 +2453,7 @@ item->SetMessage(new BMessage(kCreateLink)); } - item = fDropContextMenu->Go(global, true, true, mouseRect); + item = fDropContextMenu->Go(global, true, true); if (item) return item->Command(); @@ -2470,8 +2468,6 @@ BPoint global(loc); PoseView()->ConvertToScreen(&global); PoseView()->CommitActivePose(); - BRect mouseRect(global.x, global.y, global.x, global.y); - mouseRect.InsetBy(-5, -5); if (ref) { // clicked on a pose, show file or volume context menu @@ -2488,14 +2484,12 @@ BPoint global(loc); PoseView()->ConvertToScreen(&global); PoseView()->CommitActivePose(); - BRect mouseRect(global.x, global.y, global.x, global.y); - mouseRect.InsetBy(-5, -5); EnableNamedMenuItem(fTrashContextMenu, kEmptyTrash, static_cast<TTracker *>(be_app)->TrashFull()); SetupNavigationMenu(ref, fTrashContextMenu); - fTrashContextMenu->Go(global, true, false, mouseRect, true); + fTrashContextMenu->Go(global, true, true, true); } else { bool showAsVolume = false; @@ -2591,7 +2585,7 @@ UpdateMenu(fContextMenu, kPosePopUpContext); - fContextMenu->Go(global, true, false, mouseRect, true); + fContextMenu->Go(global, true, true, true); } } } else if (fWindowContextMenu) { @@ -2605,7 +2599,7 @@ SetupNavigationMenu(ref, fWindowContextMenu); UpdateMenu(fWindowContextMenu, kWindowPopUpContext); - fWindowContextMenu->Go(global, true, false, mouseRect, true); + fWindowContextMenu->Go(global, true, true, true); } fContextMenu = NULL; }