git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5262 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Michael Silva 1999-11-22 21:48:03 +00:00
parent 25c9581630
commit c61e1fda81
11 changed files with 670 additions and 450 deletions

View file

@ -40,6 +40,10 @@ static float GSMenuBarHeight = 25.0; // A wild guess.
// These private methods are used in NSPopUpButton. For NSPB we need to be
// able to init with a frame, but have a very custom cell size.
// Michael: This simply means that for popups the menu code cannot
// arbitraily decide the cellSize. The size of the popup must be
// consistent.
@implementation NSMenuView
//
@ -79,6 +83,11 @@ static float GSMenuBarHeight = 25.0; // A wild guess.
return [super initWithFrame: aFrame];
}
- (void)_setCellSize:(NSSize)aSize
{
cellSize = aSize;
}
- (id)initWithFrame: (NSRect)aFrame
cellSize: (NSSize)aSize
{