Window menu fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5337 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-11-30 20:26:33 +00:00
parent 06a6deb7d4
commit 009e69756d
2 changed files with 15 additions and 1 deletions

View file

@ -2,6 +2,7 @@ Tue Nov 30 19:44:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSWindow.m: Rewrote ([-encodeWithCoder:]) and
([-initWithCoder:]) so they actually work (more or less).
Fixed ([-setExcludedFromWindowsMenu:]) to update windows menu.
Tue Nov 30 11:52:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>

View file

@ -2248,7 +2248,20 @@ resetCursorRectsForView(NSView *theView)
- (void) setExcludedFromWindowsMenu: (BOOL)flag
{
_f.menu_exclude = flag;
if (_f.menu_exclude != flag)
{
_f.menu_exclude = flag;
if (_f.menu_exclude == NO)
{
[NSApp addWindowsItem: self
title: window_title
filename: [window_title isEqual: represented_filename]];
}
else
{
[NSApp removeWindowsItem: self];
}
}
}
- (id) validRequestorForSendType: (NSString *)sendType