mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:07:39 +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
|
@ -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…
Add table
Add a link
Reference in a new issue