* Source/NSToolbar.m: (-windowDidUpdate:): Automatically update

the toolbar on every window update.  This makes sure that
	no matter what window an event happens in the toolbar gets
	properly updated for ALL windows.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27827 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-02-10 01:21:07 +00:00
parent f980764a02
commit 9ef46af7f5
2 changed files with 8 additions and 8 deletions

View file

@ -1,3 +1,10 @@
2009-02-09 20:16-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSToolbar.m: (-windowDidUpdate:): Automatically update
the toolbar on every window update. This makes sure that
no matter what window an event happens in the toolbar gets
properly updated for ALL windows.
2009-02-08 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSWorkspace.m (-findApplications): Retain cached path of

View file

@ -306,14 +306,7 @@ static GSValidationCenter *vc = nil;
- (void) windowDidUpdate: (NSNotification *)notification
{
// NSLog(@"Window update %d", [[NSApp currentEvent] type]);
if (!_inside || _validating || [[NSApp currentEvent] type] == NSMouseMoved)
return;
// _validating permits in the case the UI/window is refreshed by a validation to
// avoid have windowDidUpdate called, which would cause a loop like that :
// validate -> view update -> windowDidUpdate -> validate etc.
// Validate the toolbar for each update of the window.
[self validate];
}