Updated for ivar changings

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5491 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 1999-12-13 16:20:59 +00:00
parent 324e207d8e
commit 7dac780ead
4 changed files with 56 additions and 46 deletions

View file

@ -42,12 +42,12 @@ static NSColor *clearCol = nil;
{
[super initTextCell: aString];
_text_align = NSCenterTextAlignment;
_cell.text_align = NSCenterTextAlignment;
ASSIGN (_text_color, [NSColor windowFrameTextColor]);
[self setBackgroundColor: [NSColor controlShadowColor]];
_cell.is_bordered = NO;
_cell.is_bezeled = NO;
_draws_background = YES;
_textfieldcell_draws_background = YES;
return self;
}
@ -56,7 +56,7 @@ static NSColor *clearCol = nil;
- (void) drawInteriorWithFrame: (NSRect)cellFrame
inView: (NSView*)controlView
{
switch (_cell_type)
switch (_cell.type)
{
case NSTextCellType:
[super drawInteriorWithFrame: cellFrame inView: controlView];