mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 03:50:47 +00:00
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:
parent
afc30ec329
commit
a09deaeee7
2 changed files with 26 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue