From 02e87be13962fa6e3b2b77c4227220df07fc3112 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Sat, 4 Feb 2006 20:42:18 +0000 Subject: [PATCH] tweak to use interface style from responder if set. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22427 72102866-910b-0410-8b05-ffd578937521 --- Source/NSMenuView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/NSMenuView.m b/Source/NSMenuView.m index ff7ff4781..994f24cab 100644 --- a/Source/NSMenuView.m +++ b/Source/NSMenuView.m @@ -1439,7 +1439,7 @@ _addLeftBorderOffsetToRect(NSRect aRect) && [_attachedMenu attachedMenu] != nil && [_attachedMenu attachedMenu] == [[_items_link objectAtIndex: indexOfActionToExecute] submenu]) { - if (NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", nil) + if (NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", self) == NSMacintoshInterfaceStyle) { /* @@ -1457,7 +1457,7 @@ _addLeftBorderOffsetToRect(NSRect aRect) return NO; } - if (NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", nil) + if (NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", self) == NSMacintoshInterfaceStyle) { NSMenu *tmp = _attachedMenu;