git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21858 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-10-23 10:53:39 +00:00
parent f5a5a81346
commit ef3a555cd6
2 changed files with 20 additions and 18 deletions

View file

@ -1,3 +1,8 @@
2005-10-23 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSWindow.m: ([setExcludedFromWindowsMenu:]) when a window
is excluded, remove it from the windows menu. Fixes bug #14008
2005-10-22 Richard Frith-Macdonald <rfm@gnu.org>
* Tools/make_services.m: Update to use

View file

@ -3678,26 +3678,23 @@ resetCursorRectsForView(NSView *theView)
if (_f.menu_exclude != flag)
{
_f.menu_exclude = flag;
if (_f.has_opened == YES)
if (flag == YES)
{
if (_f.menu_exclude == NO)
{
BOOL isFileName;
NSString *aString;
aString = [NSString stringWithFormat: @"%@ -- %@",
[_representedFilename lastPathComponent],
[_representedFilename stringByDeletingLastPathComponent]];
isFileName = [_windowTitle isEqual: aString];
[NSApp removeWindowsItem: self];
}
else if (_f.has_opened == YES && flag == NO)
{
BOOL isFileName;
NSString *aString;
aString = [NSString stringWithFormat: @"%@ -- %@",
[_representedFilename lastPathComponent],
[_representedFilename stringByDeletingLastPathComponent]];
isFileName = [_windowTitle isEqual: aString];
[NSApp addWindowsItem: self
title: _windowTitle
filename: isFileName];
}
else
{
[NSApp removeWindowsItem: self];
}
[NSApp addWindowsItem: self
title: _windowTitle
filename: isFileName];
}
}
}