Misc tidying.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3698 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-02-12 21:43:18 +00:00
parent cb876494d8
commit 75deb059d4
4 changed files with 805 additions and 645 deletions

View file

@ -1,3 +1,9 @@
Fri Feb 12 21:00:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSView.m: Tidied some more.
* Source/NSText.m: Don't use display - use setNeedsDisplay: instead
so that drawing gets done automatically.
Fri Feb 12 16:20:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSView.m: Improve window flushing

View file

@ -644,7 +644,7 @@ typedef enum
[lineLayoutInformation autorelease]; lineLayoutInformation=nil; // force complete re-layout
[self setRichText:NO];
//[self display];
//[self setNeedsDisplay: YES];
}
-(void) setText:(NSString *)string {[self setString:string];}
@ -697,7 +697,7 @@ typedef enum
[self updateDragTypeRegistration];
[self sizeToFit];
[self display];
[self setNeedsDisplay: YES];
}
- (void)setSelectable:(BOOL)flag
@ -779,7 +779,7 @@ typedef enum
- (void)setTextColor:(NSColor *)color
{ ASSIGN(text_color,color);
if(![self isRichText]) [self display];
if(![self isRichText]) [self setNeedsDisplay: YES];
}
- (void)setUsesFontPanel:(BOOL)flag
@ -1043,7 +1043,7 @@ typedef enum
[self updateDragTypeRegistration];
[self replaceRange:NSMakeRange(0,[self textLength]) withAttributedString:peek];
[self rebuildLineLayoutInformationStartingAtLine:0];
[self display];
[self setNeedsDisplay: YES];
return YES;
}
return NO;
@ -1430,7 +1430,7 @@ fprintf(stderr, " NSText keyDown \n");
[lineLayoutInformation autorelease]; lineLayoutInformation=nil;
[self rebuildLineLayoutInformationStartingAtLine:0];
[self display];
[self setNeedsDisplay: YES];
return;
#endif
#if 1
@ -1502,7 +1502,7 @@ fprintf(stderr, " NSText keyDown \n");
[lineLayoutInformation autorelease]; lineLayoutInformation=nil;
[self rebuildLineLayoutInformationStartingAtLine:0];
[self display];
[self setNeedsDisplay: YES];
return;
#endif
#if 1

View file

@ -201,12 +201,6 @@ id t;
- (SEL)errorAction { return error_action; }
- (void)setErrorAction:(SEL)aSelector { error_action = aSelector; }
- (void)displayRect:(NSRect)rect // not per OS spec FIX ME
{
[super displayRect:rect];
[window flushWindow];
}
//
// Handling Events
//

File diff suppressed because it is too large Load diff