Various small fixes for windows menu support.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5369 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-12-03 10:27:39 +00:00
parent d5d19ed0e7
commit 2243389ba2
4 changed files with 29 additions and 30 deletions

View file

@ -580,9 +580,11 @@ static float GSMenuBarHeight = 25.0; // A wild guess.
(frame.size.height - point.y) / cellSize.height;
}
- (void)setNeedsDisplayForItemAtIndex: (int)index
- (void) setNeedsDisplayForItemAtIndex: (int)index
{
[[menuv_itemCells objectAtIndex: index] setNeedsDisplay: YES];
NSRect aRect = [self rectOfItemAtIndex: index];
[self setNeedsDisplayInRect: aRect];
}
- (NSPoint)locationForSubmenu: (NSMenu *)aSubmenu