Source/NSWindow.m ([-sendEvent:], case NSRightMouseDown):

removed code to display the menu. This is now done by
	[NSView -rightMouseDown:].
Source/NSView.m: overrides -menu,
	changes -rightMouseDown: to display the menu,
	documents -menu, -menuForEvent: and +defaultMenu.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16413 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
pyr 2003-04-10 14:00:53 +00:00
parent aa2355943a
commit 9f51f0bca5
3 changed files with 73 additions and 13 deletions

View file

@ -2889,17 +2889,7 @@ Code shared with [NSPanel -sendEvent:], remember to update both places.
{
NSMenu *m;
v = [_contentView hitTest: [theEvent locationInWindow]];
m = [v menuForEvent: theEvent];
if (m)
{
[NSMenu popUpContextMenu: m
withEvent: theEvent
forView: v];
}
else
{
[v rightMouseDown: theEvent];
}
[v rightMouseDown: theEvent];
_lastPoint = [theEvent locationInWindow];
}
break;