From 236f39512d93cb9d03e46d63ec10055087edaef1 Mon Sep 17 00:00:00 2001 From: Alexander Malmberg Date: Tue, 13 May 2003 18:26:46 +0000 Subject: [PATCH] Mark the view as needing display, don't force a display. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16716 72102866-910b-0410-8b05-ffd578937521 --- Source/NSButton.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/NSButton.m b/Source/NSButton.m index fcfdf1fd4..997bb9f91 100644 --- a/Source/NSButton.m +++ b/Source/NSButton.m @@ -107,7 +107,7 @@ id _nsbuttonCellClass = nil; - (void) setState: (int)value { [_cell setState: value]; - [self display]; + [self setNeedsDisplay: YES]; } - (int) state @@ -128,7 +128,7 @@ id _nsbuttonCellClass = nil; - (void)setNextState { [_cell setNextState]; - [self display]; + [self setNeedsDisplay: YES]; } //