From 1c98e6fb8125f9a73939f86f078cfe1989f9cfd7 Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Sat, 27 Jan 2001 12:53:19 +0000 Subject: [PATCH] Tidied git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8834 72102866-910b-0410-8b05-ffd578937521 --- Source/NSColorWell.m | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Source/NSColorWell.m b/Source/NSColorWell.m index c13709b01..fb2a968e0 100644 --- a/Source/NSColorWell.m +++ b/Source/NSColorWell.m @@ -145,7 +145,9 @@ static NSString *GSColorWellDidBecomeExclusiveNotification = - (void) drawWellInside: (NSRect)insideRect { if (NSIsEmptyRect(insideRect)) - return; + { + return; + } [_the_color drawSwatchInRect: insideRect]; } @@ -224,32 +226,34 @@ static NSString *GSColorWellDidBecomeExclusiveNotification = // // Managing Color // -- (NSColor *)color +- (NSColor *) color { return _the_color; } -- (void)setColor: (NSColor *)color +- (void) setColor: (NSColor *)color { ASSIGN(_the_color, color); [self setNeedsDisplay: YES]; } -- (void)takeColorFrom: (id)sender +- (void) takeColorFrom: (id)sender { if ([sender respondsToSelector: @selector(color)]) - ASSIGN(_the_color, [sender color]); + { + ASSIGN(_the_color, [sender color]); + } } // // Managing Borders // -- (BOOL)isBordered +- (BOOL) isBordered { return _is_bordered; } -- (void)setBordered: (BOOL)bordered +- (void) setBordered: (BOOL)bordered { _is_bordered = bordered; [self setNeedsDisplay: YES];