mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:20:37 +00:00
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:
parent
c09e7cc780
commit
5a25706d4e
2 changed files with 15 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue