* 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:
Gregory John Casamento 2010-01-15 18:10:04 +00:00
parent 6b20840967
commit 7a717734be
4 changed files with 43 additions and 8 deletions

View file

@ -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