mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 05:10:57 +00:00
Fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5262 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
25c9581630
commit
c61e1fda81
11 changed files with 670 additions and 450 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue