mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:40:37 +00:00
encoding improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23285 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3e19866ecf
commit
b01bb1a0e1
4 changed files with 48 additions and 7 deletions
|
@ -1217,6 +1217,12 @@ static NSNotificationCenter *nc;
|
|||
{
|
||||
[encoder encodeObject: _title forKey: @"NSTitle"];
|
||||
[encoder encodeObject: _items forKey: @"NSMenuItems"];
|
||||
|
||||
// if there is no supermenu, make it the main menu.
|
||||
if([self supermenu] == nil)
|
||||
{
|
||||
[encoder encodeObject: @"_NSMainMenu" forKey: @"NSName"];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue