Don't update menu for some events

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7277 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2000-08-28 22:29:32 +00:00
parent c09e7cc780
commit 5a25706d4e
2 changed files with 15 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2000-08-26 Georg Fleischmann
* gui/Source/NSApplication.m [NSApplication run]: Don't update
menu for NSPeriodic and NSMouseMoved events.
2000-08-27 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSFontPanel.m:

View file

@ -883,11 +883,17 @@ static NSCell* tileCell = nil;
inMode: NSDefaultRunLoopMode
dequeue: YES];
if (e)
[self sendEvent: e];
{ NSEventType type = [e type];
// update (en/disable) the services menu's items
[listener updateServicesMenu];
[main_menu update];
[self sendEvent: e];
// update (en/disable) the services menu's items
if (type != NSPeriodic && type != NSMouseMoved)
{
[listener updateServicesMenu];
[main_menu update];
}
}
// send an update message to all visible windows
if (windows_need_update)