mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:27:40 +00:00
[setMenuItem:] enable/disable cell. [drawTitleWithFrame:inView:]no
longer enable/disable cell. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17622 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1b53ae15a9
commit
438ed2af3e
1 changed files with 1 additions and 5 deletions
|
@ -92,6 +92,7 @@ static NSImage *arrowImage = nil; /* Cache arrow image. */
|
|||
- (void) setMenuItem:(NSMenuItem *)item
|
||||
{
|
||||
ASSIGN (_menuItem, item);
|
||||
[self setEnabled: [_menuItem isEnabled]];
|
||||
}
|
||||
|
||||
- (NSMenuItem *) menuItem
|
||||
|
@ -485,11 +486,6 @@ static NSImage *arrowImage = nil; /* Cache arrow image. */
|
|||
- (void) drawTitleWithFrame:(NSRect)cellFrame
|
||||
inView:(NSView *)controlView
|
||||
{
|
||||
if ([_menuItem isEnabled])
|
||||
_cell.is_disabled = NO;
|
||||
else
|
||||
_cell.is_disabled = YES;
|
||||
|
||||
[self _drawText: [_menuItem title]
|
||||
inFrame: [self titleRectForBounds: cellFrame]];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue