mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 21:10:48 +00:00
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:
parent
eddafd66d5
commit
bd715ecc15
4 changed files with 805 additions and 645 deletions
|
@ -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>
|
Fri Feb 12 16:20:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
* Source/NSView.m: Improve window flushing
|
* Source/NSView.m: Improve window flushing
|
||||||
|
|
|
@ -644,7 +644,7 @@ typedef enum
|
||||||
[lineLayoutInformation autorelease]; lineLayoutInformation=nil; // force complete re-layout
|
[lineLayoutInformation autorelease]; lineLayoutInformation=nil; // force complete re-layout
|
||||||
[self setRichText:NO];
|
[self setRichText:NO];
|
||||||
|
|
||||||
//[self display];
|
//[self setNeedsDisplay: YES];
|
||||||
}
|
}
|
||||||
-(void) setText:(NSString *)string {[self setString:string];}
|
-(void) setText:(NSString *)string {[self setString:string];}
|
||||||
|
|
||||||
|
@ -697,7 +697,7 @@ typedef enum
|
||||||
[self updateDragTypeRegistration];
|
[self updateDragTypeRegistration];
|
||||||
|
|
||||||
[self sizeToFit];
|
[self sizeToFit];
|
||||||
[self display];
|
[self setNeedsDisplay: YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setSelectable:(BOOL)flag
|
- (void)setSelectable:(BOOL)flag
|
||||||
|
@ -779,7 +779,7 @@ typedef enum
|
||||||
- (void)setTextColor:(NSColor *)color
|
- (void)setTextColor:(NSColor *)color
|
||||||
{ ASSIGN(text_color,color);
|
{ ASSIGN(text_color,color);
|
||||||
|
|
||||||
if(![self isRichText]) [self display];
|
if(![self isRichText]) [self setNeedsDisplay: YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setUsesFontPanel:(BOOL)flag
|
- (void)setUsesFontPanel:(BOOL)flag
|
||||||
|
@ -1043,7 +1043,7 @@ typedef enum
|
||||||
[self updateDragTypeRegistration];
|
[self updateDragTypeRegistration];
|
||||||
[self replaceRange:NSMakeRange(0,[self textLength]) withAttributedString:peek];
|
[self replaceRange:NSMakeRange(0,[self textLength]) withAttributedString:peek];
|
||||||
[self rebuildLineLayoutInformationStartingAtLine:0];
|
[self rebuildLineLayoutInformationStartingAtLine:0];
|
||||||
[self display];
|
[self setNeedsDisplay: YES];
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
return NO;
|
return NO;
|
||||||
|
@ -1430,7 +1430,7 @@ fprintf(stderr, " NSText keyDown \n");
|
||||||
|
|
||||||
[lineLayoutInformation autorelease]; lineLayoutInformation=nil;
|
[lineLayoutInformation autorelease]; lineLayoutInformation=nil;
|
||||||
[self rebuildLineLayoutInformationStartingAtLine:0];
|
[self rebuildLineLayoutInformationStartingAtLine:0];
|
||||||
[self display];
|
[self setNeedsDisplay: YES];
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
#if 1
|
#if 1
|
||||||
|
@ -1502,7 +1502,7 @@ fprintf(stderr, " NSText keyDown \n");
|
||||||
|
|
||||||
[lineLayoutInformation autorelease]; lineLayoutInformation=nil;
|
[lineLayoutInformation autorelease]; lineLayoutInformation=nil;
|
||||||
[self rebuildLineLayoutInformationStartingAtLine:0];
|
[self rebuildLineLayoutInformationStartingAtLine:0];
|
||||||
[self display];
|
[self setNeedsDisplay: YES];
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
#if 1
|
#if 1
|
||||||
|
|
|
@ -201,12 +201,6 @@ id t;
|
||||||
- (SEL)errorAction { return error_action; }
|
- (SEL)errorAction { return error_action; }
|
||||||
- (void)setErrorAction:(SEL)aSelector { error_action = aSelector; }
|
- (void)setErrorAction:(SEL)aSelector { error_action = aSelector; }
|
||||||
|
|
||||||
- (void)displayRect:(NSRect)rect // not per OS spec FIX ME
|
|
||||||
{
|
|
||||||
[super displayRect:rect];
|
|
||||||
[window flushWindow];
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Handling Events
|
// Handling Events
|
||||||
//
|
//
|
||||||
|
|
1426
Source/NSView.m
1426
Source/NSView.m
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue