mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +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
bd467249b9
commit
a7967b1511
2 changed files with 14 additions and 6 deletions
|
@ -3120,12 +3120,18 @@ other than copy/paste or dragging. */
|
|||
return;
|
||||
|
||||
[_textStorage beginEditing];
|
||||
|
||||
if (_tf.is_rich_text)
|
||||
[_textStorage replaceCharactersInRange: aRange
|
||||
withAttributedString: attrString];
|
||||
{
|
||||
[_textStorage replaceCharactersInRange: aRange
|
||||
withAttributedString: attrString];
|
||||
}
|
||||
else
|
||||
[_textStorage replaceCharactersInRange: aRange
|
||||
withString: [attrString string]];
|
||||
{
|
||||
[_textStorage replaceCharactersInRange: aRange
|
||||
withString: [attrString string]];
|
||||
}
|
||||
|
||||
[_textStorage endEditing];
|
||||
[self didChangeText];
|
||||
}
|
||||
|
|
|
@ -345,7 +345,7 @@ static NSCell* tileCell = nil;
|
|||
- (void) drawRect: (NSRect)rect
|
||||
{
|
||||
NSColor *c = [[self window] backgroundColor];
|
||||
|
||||
|
||||
[c set];
|
||||
NSRectFill(rect);
|
||||
}
|
||||
|
@ -3440,7 +3440,9 @@ resetCursorRectsForView(NSView *theView)
|
|||
r.origin = NSZeroPoint;
|
||||
r.size = aSize;
|
||||
if (_contentView)
|
||||
[_contentView setFrame: r];
|
||||
{
|
||||
[_contentView setFrame: r];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) _setVisible: (BOOL)flag
|
||||
|
|
Loading…
Reference in a new issue