mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:20:38 +00:00
keep main menu available when using micrtosoft style
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27692 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d9f18ec9b4
commit
e5a4ab5b40
4 changed files with 50 additions and 6 deletions
|
@ -1775,6 +1775,12 @@ many times.
|
|||
{
|
||||
[_wv setInputState: GSTitleBarNormal];
|
||||
}
|
||||
if ([self menu] == [NSApp mainMenu])
|
||||
{
|
||||
/* This window contains the main menu ... remove it.
|
||||
*/
|
||||
[self setMenu: nil];
|
||||
}
|
||||
[nc postNotificationName: NSWindowDidResignMainNotification object: self];
|
||||
}
|
||||
}
|
||||
|
@ -2645,9 +2651,7 @@ resetCursorRectsForView(NSView *theView)
|
|||
_f.has_opened = NO;
|
||||
[NSApp removeWindowsItem: self];
|
||||
[self orderOut: self];
|
||||
|
||||
RELEASE(pool);
|
||||
|
||||
_f.has_closed = YES;
|
||||
RELEASE(self);
|
||||
}
|
||||
|
@ -5175,6 +5179,7 @@ current key view.<br />
|
|||
*/
|
||||
menuView = [_wv removeMenuView];
|
||||
[[self menu] setMenuRepresentation: menuView];
|
||||
[menuView sizeToFit];
|
||||
|
||||
/* Set the new menu, and transfer the new menu representation
|
||||
* to the window decoration view.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue