Only add windows that are either visible or miniaturized.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29117 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2009-12-12 10:10:40 +00:00
parent 483044e48c
commit cacdad6f44
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2009-12-12 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSApplication (-setWindowsMenu:): Only add windows that
are either visible or miniaturized.
2009-12-11 13:09-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Source/GSNibLoader.m: Added logging to help debugging of issues
@ -10,7 +15,7 @@
2009-12-10 Quentin Mathe <quentin.mathe@gmail.com>
* Headers/AppKit/NSKKeyValueBinding.h:
* Headers/AppKit/NSKeyValueBinding.h:
* Source/externs.m:
* Source/NSWindow.m (+initialize, -bind:toObject:withKeyPath:options:):
Added NSWindow 'title' binding.

View file

@ -3121,7 +3121,8 @@ image.</p><p>See Also: -applicationIconImage</p>
{
NSWindow *win = [windows objectAtIndex: i];
if ([win isExcludedFromWindowsMenu] == NO)
if (([win isExcludedFromWindowsMenu] == NO)
&& ([win isVisible] || [win isMiniaturized]))
{
NSString *t = [win title];
NSString *f = [win representedFilename];