mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:00:37 +00:00
* Headers/Additions/GNUstepGUI/GSTheme.h: Added method to call
back menuHeightForWindow: * Source/GSThemeMenu.m: Added default implementation of menuHeightForWindow:. Default implementation returns NSMenuView menuBarHeight. * Source/GSWindowDecorationView.m: Use menuHeightForWindow: instead of getting it directly from the menu view. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29288 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6b20840967
commit
7a717734be
4 changed files with 43 additions and 8 deletions
|
@ -29,6 +29,7 @@
|
|||
#include <Foundation/NSString.h>
|
||||
#include <AppKit/NSMenu.h>
|
||||
#include <AppKit/NSWindow.h>
|
||||
#include <AppKit/NSMenuView.h>
|
||||
|
||||
#include <GNUstepGUI/GSTheme.h>
|
||||
#include <GNUstepGUI/GSWindowDecorationView.h>
|
||||
|
@ -83,5 +84,10 @@
|
|||
// this is only implemented when we handle native menus.
|
||||
// put code in here to handle commands from the native menu structure.
|
||||
}
|
||||
|
||||
- (float) menuHeightForWindow: (NSWindow *)window
|
||||
{
|
||||
return [NSMenuView menuBarHeight];
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue