Fixed problems with menu in windows: transient menus and pop-ups.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31938 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Germán Arias 2011-01-24 07:02:15 +00:00
parent dde88908f9
commit 6370fa3b07
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2011-01-24 German Arias <german@xelalug.org>
* Source/NSMenuView.m (-trackWithEvent:): Fixed problems with
transient menus and PopUp (pulls-down) with Windows95 interface
style.
2011-01-20 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSColorList.m (+availableColorLists): Make sure the

View file

@ -1658,7 +1658,8 @@ static NSMapTable *viewInfo = 0;
in a window*/
if (NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", self) ==
NSWindows95InterfaceStyle &&
anAttachedMenu != nil)
![[self menu] isTransient] &&
![[self menu] _ownedByPopUp])
{
if ([self hitTest: location] == nil)
{