mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
* 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:
parent
43074e4a62
commit
2247065684
2 changed files with 6 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue