Fix PR #5849 window deminiaturize.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17945 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-10-21 03:10:24 +00:00
parent cc96830424
commit 7bbabe4e72
4 changed files with 21 additions and 1 deletions

View file

@ -2137,6 +2137,12 @@ image.
}
}
/** Changes the Window menu item associated with aWindow to aString. If no
associated window item exists, one is created. If isFilename is YES, then
aString is assumed to be a filename representation the way
[NSWindow-setTitleWithRepresentedFilename:] would format it, otherwise
the string is displayed literally in the menu item.
*/
- (void) changeWindowsItem: (NSWindow*)aWindow
title: (NSString*)aString
filename: (BOOL)isFilename
@ -2237,7 +2243,7 @@ image.
i++;
}
item = [_windows_menu insertItemWithTitle: aString
action: @selector(makeKeyAndOrderFront:)
action: @selector(deminiaturize:)
keyEquivalent: @""
atIndex: i];
[item setTarget: aWindow];