mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
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:
parent
06a6deb7d4
commit
009e69756d
2 changed files with 15 additions and 1 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue