Adding fix for report #5205. Services and Windows menus now should behave correctly.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17741 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2003-09-28 23:25:16 +00:00
parent afc30ec329
commit a09deaeee7
2 changed files with 26 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2003-09-27 19:29 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/GSNibContainer.m: [GSNibContainer awakeWithContext:]
Added code to set the services and windows menus as designated in
Gorm. Addresses Report #5205
2003-09-27 David Ayers <d.ayers@inode.at> 2003-09-27 David Ayers <d.ayers@inode.at>
* Source/NSCell.m (-compare:): Compare the stringValue of * Source/NSCell.m (-compare:): Compare the stringValue of

View file

@ -136,6 +136,26 @@ static const int currentVersion = 1; // GSNibItem version number...
[NSApp setMainMenu: menu]; [NSApp setMainMenu: menu];
} }
/*
* Set the Services menu.
* Report #5205, Services/Window menu does not behave correctly.
*/
menu = [nameTable objectForKey: @"NSServicesMenu"];
if (menu != nil && [menu isKindOfClass: [NSMenu class]] == YES)
{
[NSApp setServicesMenu: menu];
}
/*
* Set the Services menu.
* Report #5205, Services/Window menu does not behave correctly.
*/
menu = [nameTable objectForKey: @"NSWindowsMenu"];
if (menu != nil && [menu isKindOfClass: [NSMenu class]] == YES)
{
[NSApp setWindowsMenu: menu];
}
/* /*
* Now tell all the objects that they have been loaded from * Now tell all the objects that they have been loaded from
* a nib. * a nib.