Added theming for NSMenuView into GSTheme.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31660 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2010-11-26 20:28:45 +00:00
parent 7c12759c52
commit 10fb5175e7
4 changed files with 50 additions and 21 deletions

View file

@ -1320,27 +1320,10 @@ static NSMapTable *viewInfo = 0;
- (void) drawRect: (NSRect)rect
{
int i;
int howMany = [_itemCells count];
[[GSTheme theme] drawBackgroundForMenuView: self
withFrame: _bounds
dirtyRect: rect
horizontal: _horizontal];
// Draw the menu cells.
for (i = 0; i < howMany; i++)
{
NSRect aRect;
NSMenuItemCell *aCell;
aRect = [self rectOfItemAtIndex: i];
if (NSIntersectsRect(rect, aRect) == YES)
{
aCell = [self menuItemCellForItemAtIndex: i];
[aCell drawWithFrame: aRect inView: self];
}
}
[[GSTheme theme] drawMenuRect: rect
inView: self
isHorizontal: _horizontal
itemCells: _itemCells];
}
/*