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

@ -136,6 +136,26 @@ static const int currentVersion = 1; // GSNibItem version number...
[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
* a nib.