* Source/NSWindow.m: Remove private menu - (void) _menuUpdate, since

it was causing performance issue on windows as the menu was updating
	each time through the runloop.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29668 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2010-02-18 22:19:27 +00:00
parent 43074e4a62
commit 2247065684
2 changed files with 6 additions and 11 deletions

View file

@ -1,3 +1,9 @@
2010-02-18 17:21-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSWindow.m: Remove private menu - (void) _menuUpdate, since
it was causing performance issue on windows as the menu was updating
each time through the runloop.
2010-02-17 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSApplication.m (gnustep_backend_framework): Replace base

View file

@ -2310,19 +2310,8 @@ many times.
}
}
- (void) _menuUpdate
{
NSInterfaceStyle style =
NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", nil);
if(style == NSWindows95InterfaceStyle)
{
[[GSTheme theme] updateMenu: [self menu] forWindow: self];
}
}
- (void) update
{
[self _menuUpdate];
[nc postNotificationName: NSWindowDidUpdateNotification object: self];
}