diff --git a/ChangeLog b/ChangeLog index cbfee1d86..34c0c9d60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-01-31 Pierre-Yves Rivaille + + * Source/NSCell.m + * Headers/gnustep/gui/NSCell.h : new [NSCell -setHighlighted:] + method + 2002-01-30 Adam Fedor * Version: 0.7.5 diff --git a/Headers/gnustep/gui/NSCell.h b/Headers/gnustep/gui/NSCell.h index 2ae51e7d9..e0c04706d 100644 --- a/Headers/gnustep/gui/NSCell.h +++ b/Headers/gnustep/gui/NSCell.h @@ -392,6 +392,7 @@ typedef enum _NSControlSize { withFrame:(NSRect)cellFrame inView:(NSView *)controlView; - (BOOL)isHighlighted; +- (void)setHighlighted: (BOOL) flag; // // Editing Text diff --git a/Source/NSCell.m b/Source/NSCell.m index 12d1bfd81..b0a6c2c0e 100644 --- a/Source/NSCell.m +++ b/Source/NSCell.m @@ -603,6 +603,7 @@ static NSColor *shadowCol; } } + /* * Setting the NSCell's State */ @@ -1666,6 +1667,11 @@ static NSColor *shadowCol; [self drawInteriorWithFrame: cellFrame inView: controlView]; } +- (void) setHighlighted: (BOOL) flag +{ + _cell.is_highlighted = flag; +} + - (BOOL) isHighlighted { return _cell.is_highlighted;