mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 22:00:46 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8687 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a5737b792a
commit
eef7a28d19
2 changed files with 14 additions and 6 deletions
|
@ -3120,12 +3120,18 @@ other than copy/paste or dragging. */
|
||||||
return;
|
return;
|
||||||
|
|
||||||
[_textStorage beginEditing];
|
[_textStorage beginEditing];
|
||||||
|
|
||||||
if (_tf.is_rich_text)
|
if (_tf.is_rich_text)
|
||||||
[_textStorage replaceCharactersInRange: aRange
|
{
|
||||||
withAttributedString: attrString];
|
[_textStorage replaceCharactersInRange: aRange
|
||||||
|
withAttributedString: attrString];
|
||||||
|
}
|
||||||
else
|
else
|
||||||
[_textStorage replaceCharactersInRange: aRange
|
{
|
||||||
withString: [attrString string]];
|
[_textStorage replaceCharactersInRange: aRange
|
||||||
|
withString: [attrString string]];
|
||||||
|
}
|
||||||
|
|
||||||
[_textStorage endEditing];
|
[_textStorage endEditing];
|
||||||
[self didChangeText];
|
[self didChangeText];
|
||||||
}
|
}
|
||||||
|
|
|
@ -345,7 +345,7 @@ static NSCell* tileCell = nil;
|
||||||
- (void) drawRect: (NSRect)rect
|
- (void) drawRect: (NSRect)rect
|
||||||
{
|
{
|
||||||
NSColor *c = [[self window] backgroundColor];
|
NSColor *c = [[self window] backgroundColor];
|
||||||
|
|
||||||
[c set];
|
[c set];
|
||||||
NSRectFill(rect);
|
NSRectFill(rect);
|
||||||
}
|
}
|
||||||
|
@ -3440,7 +3440,9 @@ resetCursorRectsForView(NSView *theView)
|
||||||
r.origin = NSZeroPoint;
|
r.origin = NSZeroPoint;
|
||||||
r.size = aSize;
|
r.size = aSize;
|
||||||
if (_contentView)
|
if (_contentView)
|
||||||
[_contentView setFrame: r];
|
{
|
||||||
|
[_contentView setFrame: r];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) _setVisible: (BOOL)flag
|
- (void) _setVisible: (BOOL)flag
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue