mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:17:39 +00:00
* Source/NSApplication.m (-changeWindowsItem:title:filename:): If the
window can become key, use makeKeyAndOrderFront: as the action. (-updateWindowsItem:, -setWindowsMenu): Compare the title to what it would be if there was a represented filename, not the filename. * Source/NSApplication.m (-orderWindow:relativeTo:): Ditto. (-setExcludedFromWindowsMenu): Ditto. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20675 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2d14cc4dfe
commit
16af347226
3 changed files with 40 additions and 6 deletions
|
@ -1565,8 +1565,12 @@ many times.
|
|||
if (_f.menu_exclude == NO)
|
||||
{
|
||||
BOOL isFileName;
|
||||
|
||||
isFileName = [_windowTitle isEqual: _representedFilename];
|
||||
NSString *aString;
|
||||
|
||||
aString = [NSString stringWithFormat: @"%@ -- %@",
|
||||
[_representedFilename lastPathComponent],
|
||||
[_representedFilename stringByDeletingLastPathComponent]];
|
||||
isFileName = [_windowTitle isEqual: aString];
|
||||
|
||||
[NSApp addWindowsItem: self
|
||||
title: _windowTitle
|
||||
|
@ -3591,8 +3595,12 @@ resetCursorRectsForView(NSView *theView)
|
|||
if (_f.menu_exclude == NO)
|
||||
{
|
||||
BOOL isFileName;
|
||||
|
||||
isFileName = [_windowTitle isEqual: _representedFilename];
|
||||
NSString *aString;
|
||||
|
||||
aString = [NSString stringWithFormat: @"%@ -- %@",
|
||||
[_representedFilename lastPathComponent],
|
||||
[_representedFilename stringByDeletingLastPathComponent]];
|
||||
isFileName = [_windowTitle isEqual: aString];
|
||||
|
||||
[NSApp addWindowsItem: self
|
||||
title: _windowTitle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue