Make pop up menus in Macintosh menu style behave more similar to OS X.

In particular, when the user clicks the button, the menu stays open
until the next click.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31802 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2010-12-30 20:13:14 +00:00
parent b436fc237c
commit abd36c5caa
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2010-12-30 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSMenuView.m (-locationForSubmenu:):
Fix submenu placement for WindowMaker interface style (it was off
by 1 pixel).
2010-12-30 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSMenuView.m (-trackWithEvent:):

View file

@ -1046,7 +1046,7 @@ static NSMapTable *viewInfo = 0;
NSPoint subOrigin = [_window convertBaseToScreen: aRect.origin];
return NSMakePoint (NSMaxX(frame),
subOrigin.y - NSHeight(submenuFrame) - 3 +
subOrigin.y - NSHeight(submenuFrame) - 2 +
2*[NSMenuView menuBarHeight]);
}
else if ([self _rootIsHorizontal: 0] == YES)