mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:10:38 +00:00
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:
parent
7c12759c52
commit
10fb5175e7
4 changed files with 50 additions and 21 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue