From 1bbe656c8552d932024578b8231a924ffcf2f12e Mon Sep 17 00:00:00 2001 From: pyr Date: Thu, 31 Jan 2002 21:17:29 +0000 Subject: [PATCH] Source/NSCell.m Headers/gnustep/gui/NSCell.h: [NSCell -setHighlighted:] new method git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12354 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Headers/gnustep/gui/NSCell.h | 1 + Source/NSCell.m | 6 ++++++ 3 files changed, 13 insertions(+) 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;