mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:10:48 +00:00
Fix badly placed #endif
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5269 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
95dc98cfed
commit
a569f85d44
2 changed files with 59 additions and 55 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Nov 24 16:58:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSMenuView.m: ([-sizeTofit]) oops - fixed error in last mod.
|
||||
|
||||
Wed Nov 24 1999 Nicola Pero <n.pero@mi.flashnet.it>
|
||||
|
||||
The three new autolayout classes; code extremely stable, API
|
||||
|
|
|
@ -394,8 +394,8 @@ static float GSMenuBarHeight = 25.0; // A wild guess.
|
|||
|
||||
- (void) sizeToFit
|
||||
{
|
||||
int i;
|
||||
int howMany = [menuv_itemCells count];
|
||||
unsigned i;
|
||||
unsigned howMany = [menuv_itemCells count];
|
||||
float howHigh = (howMany * cellSize.height);
|
||||
float neededImageAndTitleWidth = [[NSFont boldSystemFontOfSize: 12]
|
||||
widthOfString: [menuv_menu title]] + 17;
|
||||
|
@ -474,8 +474,8 @@ static float GSMenuBarHeight = 25.0; // A wild guess.
|
|||
// Calculate frame size.
|
||||
#if 0
|
||||
if (![menuv_menu _isBeholdenToPopUpButton])
|
||||
cellSize.width = accumulatedOffset + 3; // Add the border width
|
||||
#endif
|
||||
cellSize.width = accumulatedOffset + 3; // Add the border width
|
||||
|
||||
[self setFrameSize: NSMakeSize(cellSize.width + 1, howHigh)];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue